Skip to content

Commit

Permalink
tests: fix http call to upload spreadsheet
Browse files Browse the repository at this point in the history
  • Loading branch information
marianfoo committed Nov 19, 2024
1 parent 7a5c36d commit 91561af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/demo-project/tests/upload.http
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### upload spreadsheet for specific entity
PUT http://localhost:4004/odata/v4/importer/Spreadsheet(entity='Books')/content
PUT http://localhost:4004/odata/v4/importer/Spreadsheet(entity='my.bookshop.Books')/content
Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

< .\spreadsheettest.xlsx
Expand Down
2 changes: 1 addition & 1 deletion tests/demo-project/tests/upload.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('Upload API Tests', () => {
const fileBuffer = fs.readFileSync(filePath);

const uploadResponse = await fetch(
`${BASE_URL}/odata/v4/importer/Spreadsheet(entity='Books')/content`,
`${BASE_URL}/odata/v4/importer/Spreadsheet(entity='my.bookshop.Books')/content`,
{
method: 'PUT',
headers: {
Expand Down
2 changes: 1 addition & 1 deletion tests/demo-project/tests/upload_authors.http
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### upload spreadsheet for specific entity
PUT http://localhost:4004/odata/v4/importer/Spreadsheet(entity='Authors')/content
PUT http://localhost:4004/odata/v4/importer/Spreadsheet(entity='my.bookshop.Authors')/content
Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

< .\authors.xlsx
Expand Down

0 comments on commit 91561af

Please sign in to comment.