Skip to content

Commit 87d9ad8

Browse files
committed
test: fix execution on new nodejs versions
1 parent c31fc5a commit 87d9ad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/is/__tests__/promise.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('utils/is/promise', () => {
88
expect(isPromise('fwafwf')).toBe(false);
99
expect(isPromise(() => {})).toBe(false);
1010
expect(isPromise(Promise.resolve())).toBe(true);
11-
expect(isPromise(Promise.reject())).toBe(true);
11+
expect(isPromise(Promise.reject().catch(() => {}))).toBe(true);
1212
expect(isPromise(new Promise<void>((res) => res()))).toBe(true);
1313
const f = () => {};
1414

0 commit comments

Comments
 (0)