deno.land / x / dayjs@v1.11.5 / test / constructor.test.js

constructor.test.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import MockDate from 'mockdate'import dayjs from '../src'
beforeEach(() => { MockDate.set(new Date())})
afterEach(() => { MockDate.reset()})
it('supports instanceof dayjs', () => { expect(dayjs() instanceof dayjs).toBeTruthy()})
it('does not break isDayjs', () => { expect(dayjs.isDayjs(dayjs())).toBeTruthy()})
dayjs

Version Info

Tagged at
a year ago