Skip to content

Commit

Permalink
test: improve antd coverage (#3586)
Browse files Browse the repository at this point in the history
  • Loading branch information
lumdzeehol committed Dec 1, 2022
1 parent e6454be commit 8602fe2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/antd/__tests__/moment.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ test('momentable is usable', () => {
moment.isMoment(item)
)
).toBe(true)
expect(momentable(0)).toBe(0)
})

test('formatMomentValue is usable', () => {
Expand Down Expand Up @@ -65,4 +66,7 @@ test('formatMomentValue is usable', () => {
['YYYY-MM-DD', undefined]
)
).toEqual(['2021-12-21', '2021-12-29 18:47:00'])
expect(formatMomentValue([undefined], 'YYYY-MM-DD', 'placeholder')).toEqual([
'placeholder',
])
})

0 comments on commit 8602fe2

Please sign in to comment.