Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Apr 18, 2024
1 parent 6b2b271 commit 9f1b2d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/react-router-dom/__tests__/ssr/components-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
Outlet,
RouterProvider,
} from "../../index";
import { HydratedRouter } from "../../ssr/browser";
import { RemixContext } from "../../ssr/components";
import invariant from "../../ssr/invariant";
import { RemixServer } from "../../ssr/server";
Expand Down Expand Up @@ -214,7 +215,7 @@ describe("<RemixServer>", () => {
});
});

describe("<RemixBrowser>", () => {
describe("<HydratedRouter>", () => {
it("handles empty default export objects from the compiler", () => {
window.__remixContext = {
url: "/",
Expand Down Expand Up @@ -263,7 +264,7 @@ describe("<RemixBrowser>", () => {

jest.spyOn(console, "error");

let { container } = render(<RouterProvider />);
let { container } = render(<HydratedRouter />);

expect(console.error).not.toHaveBeenCalled();
expect(container.innerHTML).toMatch("<h1>Root</h1>");
Expand Down

0 comments on commit 9f1b2d7

Please sign in to comment.