Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bameyrick committed Jan 31, 2025
1 parent aa264e9 commit eeba622
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dates/getters/getMonthNames.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe(`getMonthNames`, () => {
'Jun',
'Jul',
'Aug',
'Sep',
'Sept',
'Oct',
'Nov',
'Dec',
Expand Down
3 changes: 2 additions & 1 deletion src/type-predicates/typeOf.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ describe(`typeOf`, () => {
});

it(`rejected Promise`, () => {
expect(typeOf(Promise.reject())).toBe(ValueType.promise);
// eslint-disable-next-line @typescript-eslint/no-empty-function
expect(typeOf(Promise.reject().catch(() => {}))).toBe(ValueType.promise);
});
});

Expand Down

0 comments on commit eeba622

Please sign in to comment.