File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/router/__tests__ Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ describe("navigations", () => {
175
175
process . version . startsWith ( "v16" ) || process . version . startsWith ( "v18" )
176
176
? "Unexpected token } in JSON at position 15"
177
177
: "Unexpected non-whitespace character after JSON at position 15" ;
178
- expect ( t . router . state . errors ?. foo ) . toEqual ( new SyntaxError ( expected ) ) ;
178
+ expect ( t . router . state . errors ?. foo . message ) . toContain ( expected ) ;
179
179
} ) ;
180
180
181
181
it ( "bubbles errors when unwrapping Responses" , async ( ) => {
@@ -212,7 +212,7 @@ describe("navigations", () => {
212
212
process . version . startsWith ( "v16" ) || process . version . startsWith ( "v18" )
213
213
? "Unexpected token } in JSON at position 15"
214
214
: "Unexpected non-whitespace character after JSON at position 15" ;
215
- expect ( t . router . state . errors ?. root ) . toEqual ( new SyntaxError ( expected ) ) ;
215
+ expect ( t . router . state . errors ?. root . message ) . toContain ( expected ) ;
216
216
} ) ;
217
217
218
218
it ( "does not fetch unchanging layout data" , async ( ) => {
You can’t perform that action at this time.
0 commit comments