Skip to content

Commit

Permalink
Fix a broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Aug 29, 2024
1 parent b581334 commit f063fb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/live-api.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ describe('API integration', { timeout: 30000 }, () => {
original_md5hash: '1b199e02dd833b2278ce2a0e75480b14',
})
// Because order is not same as input
const uploadsKeyed = Object.fromEntries(result.uploads, (upload) => [upload.name, upload])
const uploadsKeyed = Object.fromEntries(result.uploads.map((upload) => [upload.name, upload]))
expect(uploadsKeyed.file1).toMatchObject(getMatchObject({ name: 'file1' }))
expect(uploadsKeyed.file2).toMatchObject(getMatchObject({ name: 'file2' }))
expect(uploadsKeyed.file3).toMatchObject(getMatchObject({ name: 'file3' }))
Expand Down

0 comments on commit f063fb5

Please sign in to comment.