Skip to content

Commit 24f86cc

Browse files
committed
fix: use 'Rejects' instead of 'Throws'
1 parent fd7ea38 commit 24f86cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/__tests__/promises.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,13 @@ describe('Promises API', () => {
173173
const stat = await vol.lstat('/foo', { throwIfNoEntry: false });
174174
expect(stat).toBeUndefined();
175175
});
176-
it('Throws when entry does not exist if throwIfNoEntry is true', async () => {
176+
it('Rejects when entry does not exist if throwIfNoEntry is true', async () => {
177177
await expect(vol.lstat('/foo', { throwIfNoEntry: true })).rejects.toBeInstanceOf(Error);
178178
});
179-
it('Throws when entry does not exist if throwIfNoEntry is not specified', async () => {
179+
it('Rejects when entry does not exist if throwIfNoEntry is not specified', async () => {
180180
await expect(vol.lstat('/foo')).rejects.toBeInstanceOf(Error);
181181
});
182-
it('Throws when entry does not exist if throwIfNoEntry is explicitly undefined', async () => {
182+
it('Rejects when entry does not exist if throwIfNoEntry is explicitly undefined', async () => {
183183
await expect(vol.lstat('/foo', { throwIfNoEntry: undefined })).rejects.toBeInstanceOf(Error);
184184
});
185185
});

0 commit comments

Comments
 (0)