File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/router/__tests__ Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,8 @@ describe("navigations", () => {
172
172
173
173
// Node 18 and 20 output different errors here
174
174
// Node 18 and 20 output different errors here
175
- let expected = process . version . startsWith ( "18" )
175
+ console . log ( "process.version" , process . version ) ;
176
+ let expected = process . version . startsWith ( "v18" )
176
177
? "Unexpected token } in JSON at position 15"
177
178
: "Unexpected non-whitespace character after JSON at position 15" ;
178
179
expect ( t . router . state . errors ?. foo ) . toEqual ( new SyntaxError ( expected ) ) ;
@@ -208,7 +209,7 @@ describe("navigations", () => {
208
209
expect ( t . router . state . loaderData ) . toEqual ( { } ) ;
209
210
210
211
// Node 18 and 20 output different errors here
211
- let expected = process . version . startsWith ( "18 " )
212
+ let expected = process . version . startsWith ( "v18 " )
212
213
? "Unexpected token } in JSON at position 15"
213
214
: "Unexpected non-whitespace character after JSON at position 15" ;
214
215
expect ( t . router . state . errors ?. root ) . toEqual ( new SyntaxError ( expected ) ) ;
You can’t perform that action at this time.
0 commit comments