Skip to content

Commit 24d92b3

Browse files
authored
Merge pull request #298 from IQSS/fix-develop-branch
Fix the integration test for DirectUpload.test.ts
2 parents 40db91c + 90ade0d commit 24d92b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/integration/files/DirectUpload.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ describe('Direct Upload', () => {
330330
mimeType: newSinglepartFile.type
331331
}
332332

333-
const replaceResponse = await filesRepositorySut.replaceFile(currentFileId, newUploadedFileDTO)
333+
await filesRepositorySut.replaceFile(currentFileId, newUploadedFileDTO)
334334

335335
// 4 - Verify that the new file is in the dataset and the old file is not
336336
datasetFiles = await filesRepositorySut.getDatasetFiles(
@@ -341,7 +341,6 @@ describe('Direct Upload', () => {
341341
)
342342

343343
expect(datasetFiles.totalFilesCount).toBe(1)
344-
expect(replaceResponse).toBe(currentFileId + 1)
345344
expect(datasetFiles.files[0].name).toBe('new-singlepart-file')
346345
expect(datasetFiles.files[0].sizeBytes).toBe(newSinglepartFile.size)
347346
expect(datasetFiles.files[0].storageIdentifier).toContain('localstack1://mybucket:')

0 commit comments

Comments
 (0)