Skip to content

Commit

Permalink
test(date): validate narrow format (#17989)
Browse files Browse the repository at this point in the history
  • Loading branch information
prashantsinghb committed Aug 8, 2023
1 parent 4663189 commit 0b3c47f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ describe('vuetify date adapter', () => {
it('should return weekdays based on locale', () => {
let instance = new VuetifyDateAdapter({ locale: 'en-us' })

expect(instance.getWeekdays()).toStrictEqual(['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'])
expect(instance.getWeekdays()).toStrictEqual(['S', 'M', 'T', 'W', 'T', 'F', 'S'])

instance = new VuetifyDateAdapter({ locale: 'sv-se' })

expect(instance.getWeekdays()).toStrictEqual(['mån', 'tis', 'ons', 'tors', 'fre', 'lör', 'sön'])
expect(instance.getWeekdays()).toStrictEqual(['M', 'T', 'O', 'T', 'F', 'L', 'S'])
})

it('should format dates', () => {
Expand Down

0 comments on commit 0b3c47f

Please sign in to comment.