From 18841db62e03cd0ae4d397b7633b0610c3f91d72 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 29 Dec 2023 11:51:41 +0100 Subject: [PATCH] fix tests --- packages/@uppy/core/src/Uppy.test.ts | 16 ++++++++-------- .../core/src/__snapshots__/Uppy.test.ts.snap | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/@uppy/core/src/Uppy.test.ts b/packages/@uppy/core/src/Uppy.test.ts index 317ad1f226c..8a3c6cfc858 100644 --- a/packages/@uppy/core/src/Uppy.test.ts +++ b/packages/@uppy/core/src/Uppy.test.ts @@ -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, @@ -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, @@ -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, @@ -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, @@ -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', @@ -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, diff --git a/packages/@uppy/core/src/__snapshots__/Uppy.test.ts.snap b/packages/@uppy/core/src/__snapshots__/Uppy.test.ts.snap index 29cd443a259..9938ba85628 100644 --- a/packages/@uppy/core/src/__snapshots__/Uppy.test.ts.snap +++ b/packages/@uppy/core/src/__snapshots__/Uppy.test.ts.snap @@ -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", @@ -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",