From ac402a865dd55fef7ef333f35aa5869bffe7e499 Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Tue, 3 Oct 2023 01:27:43 -0700 Subject: [PATCH] syntax: make datetime syntax norm test more flexible --- packages/syntax/tests/datetime.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syntax/tests/datetime.test.ts b/packages/syntax/tests/datetime.test.ts index 343fadec91f..4cc9f8c0974 100644 --- a/packages/syntax/tests/datetime.test.ts +++ b/packages/syntax/tests/datetime.test.ts @@ -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', () => {