Skip to content

Commit

Permalink
Fix time dependent test
Browse files Browse the repository at this point in the history
  • Loading branch information
marnusw committed Dec 20, 2021
1 parent 6c49bfa commit b67da3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/format/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ describe('format', function () {
})

it('throws RangeError if the time zone is invalid and included in the output', () => {
var result = format(new Date(), 'MMMM d, yyyy', { timeZone: 'bad/timeZone' })
var result = format(new Date(2021, 11, 20), 'MMMM d, yyyy', { timeZone: 'bad/timeZone' })
assert.equal(result, 'December 20, 2021')
try {
format(new Date(), 'MMMM d, yyyy zzz', { timeZone: 'bad/timeZone' })
Expand Down

0 comments on commit b67da3f

Please sign in to comment.