Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeressian committed Jun 24, 2020
1 parent ce7c03c commit 301848c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/uploader.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import uploader from '../src/uploader';

describe('when uploading a directory with 3 files', () => {
it('should call fetch api 3 times with correct arguments', async () => {
await uploader(resolve('test/test-upload-dir'), 'storageName');
await uploader(resolve('test/test-upload-dir'), 'storageName', 'key');
expect(fetchMock).toHaveBeenCalledWith("https://storage.bunnycdn.com/storageName/test.txt", expect.anything());
expect(fetchMock).toHaveBeenCalledWith("https://storage.bunnycdn.com/storageName/test2.txt", expect.anything());
expect(fetchMock).toHaveBeenCalledWith("https://storage.bunnycdn.com/storageName/nestd/test3.txt", expect.anything());
Expand Down

0 comments on commit 301848c

Please sign in to comment.