deno.land / x / dayjs@v1.11.5 / test / constructor.test.js
12345678910111213141516171819import 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()})
Version Info