Skip to content

Commit

Permalink
syntax: make datetime syntax norm test more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Oct 3, 2023
1 parent fb484cb commit ac402a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/syntax/tests/datetime.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe('normalization', () => {
const normalized = normalizeAndEnsureValidDatetime(
'1985-04-12T23:20:50.123',
)
expect(normalized).toMatch(/^1985-04-13T[0-9:.]+Z$/)
expect(normalized).toMatch(/^1985-04-1[234]T[0-9:.]+Z$/)
})

it('throws on invalid normalized datetimes', () => {
Expand Down

0 comments on commit ac402a8

Please sign in to comment.