Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed May 15, 2024
1 parent f47e542 commit 2f843ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions packages/@uppy/core/src/Uppy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ describe('src/Core', () => {
})
expect(core.getFile(fileId).progress).toEqual({
percentage: 0,
bytesUploaded: 0,
bytesUploaded: false,
bytesTotal: 17175,
uploadComplete: false,
uploadStarted: null,
Expand All @@ -719,7 +719,7 @@ describe('src/Core', () => {
})
expect(core.getFile(fileID).progress).toEqual({
percentage: 0,
bytesUploaded: 0,
bytesUploaded: false,
bytesTotal: 17175,
uploadComplete: false,
uploadStarted: null,
Expand Down Expand Up @@ -788,7 +788,7 @@ describe('src/Core', () => {
})
expect(core.getFile(fileId).progress).toEqual({
percentage: 0,
bytesUploaded: 0,
bytesUploaded: false,
bytesTotal: 17175,
uploadComplete: false,
uploadStarted: null,
Expand All @@ -815,7 +815,7 @@ describe('src/Core', () => {
})
expect(core.getFile(fileId).progress).toEqual({
percentage: 0,
bytesUploaded: 0,
bytesUploaded: false,
bytesTotal: 17175,
uploadComplete: false,
uploadStarted: null,
Expand Down Expand Up @@ -919,12 +919,12 @@ describe('src/Core', () => {
isGhost: false,
progress: {
bytesTotal: 17175,
bytesUploaded: 0,
bytesUploaded: false,
percentage: 0,
uploadComplete: false,
uploadStarted: null,
},
remote: '',
remote: undefined,
size: 17175,
source: 'vi',
type: 'image/jpeg',
Expand Down Expand Up @@ -1951,14 +1951,14 @@ describe('src/Core', () => {

expect(core.getFile(file1.id).progress).toEqual({
percentage: 0,
bytesUploaded: 0,
bytesUploaded: false,
bytesTotal: 17175,
uploadComplete: false,
uploadStarted: null,
})
expect(core.getFile(file2.id).progress).toEqual({
percentage: 0,
bytesUploaded: 0,
bytesUploaded: false,
bytesTotal: 17175,
uploadComplete: false,
uploadStarted: null,
Expand Down
8 changes: 4 additions & 4 deletions packages/@uppy/core/src/__snapshots__/Uppy.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ exports[`src/Core > uploading a file > should only upload files that are not alr
"preview": undefined,
"progress": {
"bytesTotal": null,
"bytesUploaded": 0,
"bytesUploaded": false,
"percentage": 0,
"uploadComplete": false,
"uploadStarted": null,
},
"remote": "",
"remote": undefined,
"size": null,
"source": "vi",
"type": "image/jpeg",
Expand All @@ -53,12 +53,12 @@ exports[`src/Core > uploading a file > should only upload files that are not alr
"preview": undefined,
"progress": {
"bytesTotal": null,
"bytesUploaded": 0,
"bytesUploaded": false,
"percentage": 0,
"uploadComplete": false,
"uploadStarted": null,
},
"remote": "",
"remote": undefined,
"size": null,
"source": "vi",
"type": "image/jpeg",
Expand Down

0 comments on commit 2f843ad

Please sign in to comment.