Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: πŸ› refactor exists tests to be compatible w/ strictNullChecks
  • Loading branch information
G-Rath committed Jul 12, 2019
1 parent e318af2 commit 81a564f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__tests__/volume/exists.test.ts
Expand Up @@ -16,7 +16,7 @@ describe('exists(path, callback)', () => {
});
it('Throws correct error if callback not provided', done => {
try {
vol.exists('/foo', undefined);
vol.exists('/foo', undefined as any);
throw new Error('not_this');
} catch (err) {
expect(err.message).toEqual('callback must be a function');
Expand Down

0 comments on commit 81a564f

Please sign in to comment.