Skip to content

Commit

Permalink
fix: use 'Rejects' instead of 'Throws'
Browse files Browse the repository at this point in the history
  • Loading branch information
mausworks committed Nov 24, 2021
1 parent fd7ea38 commit 24f86cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/__tests__/promises.test.ts
Expand Up @@ -173,13 +173,13 @@ describe('Promises API', () => {
const stat = await vol.lstat('/foo', { throwIfNoEntry: false });
expect(stat).toBeUndefined();
});
it('Throws when entry does not exist if throwIfNoEntry is true', async () => {
it('Rejects when entry does not exist if throwIfNoEntry is true', async () => {
await expect(vol.lstat('/foo', { throwIfNoEntry: true })).rejects.toBeInstanceOf(Error);
});
it('Throws when entry does not exist if throwIfNoEntry is not specified', async () => {
it('Rejects when entry does not exist if throwIfNoEntry is not specified', async () => {
await expect(vol.lstat('/foo')).rejects.toBeInstanceOf(Error);
});
it('Throws when entry does not exist if throwIfNoEntry is explicitly undefined', async () => {
it('Rejects when entry does not exist if throwIfNoEntry is explicitly undefined', async () => {
await expect(vol.lstat('/foo', { throwIfNoEntry: undefined })).rejects.toBeInstanceOf(Error);
});
});
Expand Down

0 comments on commit 24f86cc

Please sign in to comment.