Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Dec 29, 2023
1 parent 6b94498 commit 18841db
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 @@ -629,7 +629,7 @@ describe('src/Core', () => {
})
expect(core.getFile(fileId).progress).toEqual({
percentage: 0,
bytesUploaded: 0,
bytesUploaded: false,
bytesTotal: 17175,
uploadComplete: false,
uploadStarted: null,
Expand All @@ -656,7 +656,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 @@ -726,7 +726,7 @@ describe('src/Core', () => {
})
expect(core.getFile(fileId).progress).toEqual({
percentage: 0,
bytesUploaded: 0,
bytesUploaded: false,
bytesTotal: 17175,
uploadComplete: false,
uploadStarted: null,
Expand All @@ -753,7 +753,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 @@ -858,12 +858,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 @@ -1859,14 +1859,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 18841db

Please sign in to comment.