Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 30, 2023
1 parent a979f21 commit 6bf10d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/shared/useDateFormat/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,9 @@ describe('useDateFormat', () => {
expect(useDateFormat(new Date(dateStr), formatStr, { customMeridiem }).value).toBe(expected)
})
})

it('formatDate', () => {
expect(formatDate(new Date('Sun Jul 30 2023 21:15:42 GMT+0800'), 'd'))
.toMatchInlineSnapshot('"0"')
})
})

0 comments on commit 6bf10d1

Please sign in to comment.