Skip to content

Commit 4b1a5a5

Browse files
committed
fix: Updated test cases for upload
1 parent 79d8796 commit 4b1a5a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/client.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ describe('client', () => {
210210

211211
expect(Upload.prototype.setToken).toHaveBeenCalledWith(token);
212212
expect(Upload.prototype.setSecurity).toHaveBeenCalledWith(defaultSecurity);
213-
expect(Upload.prototype.upload).toHaveBeenCalledWith(file, undefined);
213+
expect(Upload.prototype.upload).toHaveBeenCalledWith(file, undefined, undefined);
214214
});
215215

216216
it('should be able to upload file with alt text', async () => {
@@ -233,7 +233,7 @@ describe('client', () => {
233233

234234
expect(Upload.prototype.setToken).toHaveBeenCalledWith(token);
235235
expect(Upload.prototype.setSecurity).toHaveBeenCalledWith(defaultSecurity);
236-
expect(Upload.prototype.upload).toHaveBeenCalledWith(file, uploadOptions.altText);
236+
expect(Upload.prototype.upload).toHaveBeenCalledWith(file, uploadOptions.altText, undefined);
237237
});
238238

239239
it('should be able to upload file without token and security', async () => {
@@ -251,7 +251,7 @@ describe('client', () => {
251251
urls: sessionURls,
252252
});
253253

254-
expect(Upload.prototype.upload).toHaveBeenCalledWith(file, undefined);
254+
expect(Upload.prototype.upload).toHaveBeenCalledWith(file, undefined, undefined);
255255
});
256256

257257
it('should emit error', async () => {

0 commit comments

Comments
 (0)