@@ -1733,23 +1733,23 @@ describe("grammar for JSON schema", () => {
17331733 grammar . parse ( JSON . stringify ( exampleInvalidValue ) ) ;
17341734 expect . unreachable ( "Parsing should have failed" ) ;
17351735 } catch ( err ) {
1736- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected at least 2 characters but got 1]` ) ;
1736+ expect ( err ) . toMatchInlineSnapshot ( " [Error: Expected at least 2 characters but got 1]" ) ;
17371737 expect ( testGrammar ( grammar , exampleInvalidValue ) ) . to . eql ( false ) ;
17381738 }
17391739
17401740 try {
17411741 grammar . parse ( JSON . stringify ( exampleInvalidValue2 ) ) ;
17421742 expect . unreachable ( "Parsing should have failed" ) ;
17431743 } catch ( err ) {
1744- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected at least 2 characters but got 0]` ) ;
1744+ expect ( err ) . toMatchInlineSnapshot ( " [Error: Expected at least 2 characters but got 0]" ) ;
17451745 expect ( testGrammar ( grammar , exampleInvalidValue2 ) ) . to . eql ( false ) ;
17461746 }
17471747
17481748 try {
17491749 grammar . parse ( JSON . stringify ( exampleInvalidValue3 ) ) ;
17501750 expect . unreachable ( "Parsing should have failed" ) ;
17511751 } catch ( err ) {
1752- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected at least 2 characters but got 1]` ) ;
1752+ expect ( err ) . toMatchInlineSnapshot ( " [Error: Expected at least 2 characters but got 1]" ) ;
17531753 expect ( testGrammar ( grammar , exampleInvalidValue3 ) ) . to . eql ( false ) ;
17541754 }
17551755 } ) ;
@@ -1822,23 +1822,23 @@ describe("grammar for JSON schema", () => {
18221822 grammar . parse ( JSON . stringify ( exampleInvalidValue ) ) ;
18231823 expect . unreachable ( "Parsing should have failed" ) ;
18241824 } catch ( err ) {
1825- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected at most 4 characters but got 5]` ) ;
1825+ expect ( err ) . toMatchInlineSnapshot ( " [Error: Expected at most 4 characters but got 5]" ) ;
18261826 expect ( testGrammar ( grammar , exampleInvalidValue ) ) . to . eql ( false ) ;
18271827 }
18281828
18291829 try {
18301830 grammar . parse ( JSON . stringify ( exampleInvalidValue2 ) ) ;
18311831 expect . unreachable ( "Parsing should have failed" ) ;
18321832 } catch ( err ) {
1833- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected at most 4 characters but got 5]` ) ;
1833+ expect ( err ) . toMatchInlineSnapshot ( " [Error: Expected at most 4 characters but got 5]" ) ;
18341834 expect ( testGrammar ( grammar , exampleInvalidValue2 ) ) . to . eql ( false ) ;
18351835 }
18361836
18371837 try {
18381838 grammar . parse ( JSON . stringify ( exampleInvalidValue3 ) ) ;
18391839 expect . unreachable ( "Parsing should have failed" ) ;
18401840 } catch ( err ) {
1841- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected at most 4 characters but got 5]` ) ;
1841+ expect ( err ) . toMatchInlineSnapshot ( " [Error: Expected at most 4 characters but got 5]" ) ;
18421842 expect ( testGrammar ( grammar , exampleInvalidValue3 ) ) . to . eql ( false ) ;
18431843 }
18441844 } ) ;
@@ -1912,23 +1912,23 @@ describe("grammar for JSON schema", () => {
19121912 grammar . parse ( JSON . stringify ( exampleInvalidValue ) ) ;
19131913 expect . unreachable ( "Parsing should have failed" ) ;
19141914 } catch ( err ) {
1915- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected at least 2 characters but got 1]` ) ;
1915+ expect ( err ) . toMatchInlineSnapshot ( " [Error: Expected at least 2 characters but got 1]" ) ;
19161916 expect ( testGrammar ( grammar , exampleInvalidValue ) ) . to . eql ( false ) ;
19171917 }
19181918
19191919 try {
19201920 grammar . parse ( JSON . stringify ( exampleInvalidValue2 ) ) ;
19211921 expect . unreachable ( "Parsing should have failed" ) ;
19221922 } catch ( err ) {
1923- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected at most 4 characters but got 5]` ) ;
1923+ expect ( err ) . toMatchInlineSnapshot ( " [Error: Expected at most 4 characters but got 5]" ) ;
19241924 expect ( testGrammar ( grammar , exampleInvalidValue2 ) ) . to . eql ( false ) ;
19251925 }
19261926
19271927 try {
19281928 grammar . parse ( JSON . stringify ( exampleInvalidValue3 ) ) ;
19291929 expect . unreachable ( "Parsing should have failed" ) ;
19301930 } catch ( err ) {
1931- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected at most 4 characters but got 6]` ) ;
1931+ expect ( err ) . toMatchInlineSnapshot ( " [Error: Expected at most 4 characters but got 6]" ) ;
19321932 expect ( testGrammar ( grammar , exampleInvalidValue3 ) ) . to . eql ( false ) ;
19331933 }
19341934 } ) ;
@@ -2001,23 +2001,23 @@ describe("grammar for JSON schema", () => {
20012001 grammar . parse ( JSON . stringify ( exampleInvalidValue ) ) ;
20022002 expect . unreachable ( "Parsing should have failed" ) ;
20032003 } catch ( err ) {
2004- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected a valid date string but got "2024-12-32"]` ) ;
2004+ expect ( err ) . toMatchInlineSnapshot ( ' [Error: Expected a valid date string but got "2024-12-32"]' ) ;
20052005 expect ( testGrammar ( grammar , exampleInvalidValue ) ) . to . eql ( false ) ;
20062006 }
20072007
20082008 try {
20092009 grammar . parse ( JSON . stringify ( exampleInvalidValue2 ) ) ;
20102010 expect . unreachable ( "Parsing should have failed" ) ;
20112011 } catch ( err ) {
2012- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected a valid date string but got "2024-13-20"]` ) ;
2012+ expect ( err ) . toMatchInlineSnapshot ( ' [Error: Expected a valid date string but got "2024-13-20"]' ) ;
20132013 expect ( testGrammar ( grammar , exampleInvalidValue2 ) ) . to . eql ( false ) ;
20142014 }
20152015
20162016 try {
20172017 grammar . parse ( JSON . stringify ( exampleInvalidValue3 ) ) ;
20182018 expect . unreachable ( "Parsing should have failed" ) ;
20192019 } catch ( err ) {
2020- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected a valid date string but got "2024-00-20"]` ) ;
2020+ expect ( err ) . toMatchInlineSnapshot ( ' [Error: Expected a valid date string but got "2024-00-20"]' ) ;
20212021 expect ( testGrammar ( grammar , exampleInvalidValue3 ) ) . to . eql ( false ) ;
20222022 }
20232023 } ) ;
@@ -2102,31 +2102,31 @@ describe("grammar for JSON schema", () => {
21022102 grammar . parse ( JSON . stringify ( exampleInvalidValue ) ) ;
21032103 expect . unreachable ( "Parsing should have failed" ) ;
21042104 } catch ( err ) {
2105- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected a valid time string but got "12:00:00.000"]` ) ;
2105+ expect ( err ) . toMatchInlineSnapshot ( ' [Error: Expected a valid time string but got "12:00:00.000"]' ) ;
21062106 expect ( testGrammar ( grammar , exampleInvalidValue ) ) . to . eql ( false ) ;
21072107 }
21082108
21092109 try {
21102110 grammar . parse ( JSON . stringify ( exampleInvalidValue2 ) ) ;
21112111 expect . unreachable ( "Parsing should have failed" ) ;
21122112 } catch ( err ) {
2113- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected a valid time string but got "12:00:00"]` ) ;
2113+ expect ( err ) . toMatchInlineSnapshot ( ' [Error: Expected a valid time string but got "12:00:00"]' ) ;
21142114 expect ( testGrammar ( grammar , exampleInvalidValue2 ) ) . to . eql ( false ) ;
21152115 }
21162116
21172117 try {
21182118 grammar . parse ( JSON . stringify ( exampleInvalidValue3 ) ) ;
21192119 expect . unreachable ( "Parsing should have failed" ) ;
21202120 } catch ( err ) {
2121- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected a valid time string but got "24:00:00Z"]` ) ;
2121+ expect ( err ) . toMatchInlineSnapshot ( ' [Error: Expected a valid time string but got "24:00:00Z"]' ) ;
21222122 expect ( testGrammar ( grammar , exampleInvalidValue3 ) ) . to . eql ( false ) ;
21232123 }
21242124
21252125 try {
21262126 grammar . parse ( JSON . stringify ( exampleInvalidValue4 ) ) ;
21272127 expect . unreachable ( "Parsing should have failed" ) ;
21282128 } catch ( err ) {
2129- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected a valid time string but got "22:60:00Z"]` ) ;
2129+ expect ( err ) . toMatchInlineSnapshot ( ' [Error: Expected a valid time string but got "22:60:00Z"]' ) ;
21302130 expect ( testGrammar ( grammar , exampleInvalidValue4 ) ) . to . eql ( false ) ;
21312131 }
21322132 } ) ;
@@ -2211,31 +2211,31 @@ describe("grammar for JSON schema", () => {
22112211 grammar . parse ( JSON . stringify ( exampleInvalidValue ) ) ;
22122212 expect . unreachable ( "Parsing should have failed" ) ;
22132213 } catch ( err ) {
2214- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected a valid date-time string but got "2024-12-01T12:00:00.000"]` ) ;
2214+ expect ( err ) . toMatchInlineSnapshot ( ' [Error: Expected a valid date-time string but got "2024-12-01T12:00:00.000"]' ) ;
22152215 expect ( testGrammar ( grammar , exampleInvalidValue ) ) . to . eql ( false ) ;
22162216 }
22172217
22182218 try {
22192219 grammar . parse ( JSON . stringify ( exampleInvalidValue2 ) ) ;
22202220 expect . unreachable ( "Parsing should have failed" ) ;
22212221 } catch ( err ) {
2222- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected a valid date-time string but got "2024-12-32T02:00:00.010Z"]` ) ;
2222+ expect ( err ) . toMatchInlineSnapshot ( ' [Error: Expected a valid date-time string but got "2024-12-32T02:00:00.010Z"]' ) ;
22232223 expect ( testGrammar ( grammar , exampleInvalidValue2 ) ) . to . eql ( false ) ;
22242224 }
22252225
22262226 try {
22272227 grammar . parse ( JSON . stringify ( exampleInvalidValue3 ) ) ;
22282228 expect . unreachable ( "Parsing should have failed" ) ;
22292229 } catch ( err ) {
2230- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected a valid date-time string but got "2000-01-01T24:00:00Z"]` ) ;
2230+ expect ( err ) . toMatchInlineSnapshot ( ' [Error: Expected a valid date-time string but got "2000-01-01T24:00:00Z"]' ) ;
22312231 expect ( testGrammar ( grammar , exampleInvalidValue3 ) ) . to . eql ( false ) ;
22322232 }
22332233
22342234 try {
22352235 grammar . parse ( JSON . stringify ( exampleInvalidValue4 ) ) ;
22362236 expect . unreachable ( "Parsing should have failed" ) ;
22372237 } catch ( err ) {
2238- expect ( err ) . toMatchInlineSnapshot ( ` [Error: Expected a valid date-time string but got "2024-00-20T22:00:00+01:00"]` ) ;
2238+ expect ( err ) . toMatchInlineSnapshot ( ' [Error: Expected a valid date-time string but got "2024-00-20T22:00:00+01:00"]' ) ;
22392239 expect ( testGrammar ( grammar , exampleInvalidValue4 ) ) . to . eql ( false ) ;
22402240 }
22412241 } ) ;
0 commit comments