deno.land / x / dayjs@v1.11.5 / test / plugin / toObject.test.js

toObject.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 moment from 'moment'import dayjs from '../../src'import toObject from '../../src/plugin/toObject'
dayjs.extend(toObject)
beforeEach(() => { MockDate.set(new Date())})
afterEach(() => { MockDate.reset()})
it('As Object -> toObject', () => { expect(dayjs().toObject()).toEqual(moment().toObject())})
dayjs

Version Info

Tagged at
a year ago