Skip to content

Commit

Permalink
fix: fix isDayjs check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun committed Jul 21, 2023
1 parent 9f82758 commit 0f2089d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/constructor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ it('$isDayjsObject', () => {

it('does not break isDayjs', () => {
expect(dayjs.isDayjs(dayjs())).toBeTruthy()
expect(dayjs.isDayjs(new Date())).toBeFalsy()
})

0 comments on commit 0f2089d

Please sign in to comment.