Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions test/integration/files/DirectUpload.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ describe('Direct Upload', () => {
mimeType: newSinglepartFile.type
}

const replaceResponse = await filesRepositorySut.replaceFile(currentFileId, newUploadedFileDTO)
await filesRepositorySut.replaceFile(currentFileId, newUploadedFileDTO)

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

expect(datasetFiles.totalFilesCount).toBe(1)
expect(replaceResponse).toBe(currentFileId + 1)
expect(datasetFiles.files[0].name).toBe('new-singlepart-file')
expect(datasetFiles.files[0].sizeBytes).toBe(newSinglepartFile.size)
expect(datasetFiles.files[0].storageIdentifier).toContain('localstack1://mybucket:')
Expand Down
Loading