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

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

Version Info

Tagged at
a year ago