Skip to content

Commit f74a1eb

Browse files
committed
Fix new tests
1 parent a706d24 commit f74a1eb

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

packages/react-router/__tests__/router/lazy-test.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2967,9 +2967,7 @@ describe("lazily loaded route modules", () => {
29672967
!(context instanceof Response),
29682968
"Expected a StaticContext instance"
29692969
);
2970-
expect(context.loaderData).toEqual({
2971-
root: null,
2972-
});
2970+
expect(context.loaderData).toEqual({});
29732971
expect(context.errors).toEqual({
29742972
lazy: new Error("LAZY LOADER ERROR"),
29752973
});
@@ -3041,9 +3039,7 @@ describe("lazily loaded route modules", () => {
30413039
!(context instanceof Response),
30423040
"Expected a StaticContext instance"
30433041
);
3044-
expect(context.loaderData).toEqual({
3045-
root: null,
3046-
});
3042+
expect(context.loaderData).toEqual({});
30473043
expect(context.errors).toEqual({
30483044
root: new Error("LAZY LOADER ERROR"),
30493045
});
@@ -3080,9 +3076,7 @@ describe("lazily loaded route modules", () => {
30803076
!(context instanceof Response),
30813077
"Expected a StaticContext instance"
30823078
);
3083-
expect(context.loaderData).toEqual({
3084-
root: null,
3085-
});
3079+
expect(context.loaderData).toEqual({});
30863080
expect(context.errors).toEqual({
30873081
root: new Error("LAZY LOADER ERROR"),
30883082
});

0 commit comments

Comments
 (0)