Skip to content

Commit d5b9128

Browse files
committed
fix lint issues
1 parent 5563672 commit d5b9128

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

packages/react-router-dom/__tests__/data-browser-router-test.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import {
2929
useFetchers,
3030
useLoaderData,
3131
useLocation,
32-
useMatches,
3332
useNavigate,
3433
useNavigation,
3534
useRouteError,
@@ -5821,7 +5820,12 @@ function testDomRouter(
58215820
Component() {
58225821
let fetcher = useFetcher({ key: "me" });
58235822
let data = useLoaderData() as { count: number };
5824-
return <h1>{`Page (${data.count})`}</h1>;
5823+
return (
5824+
<>
5825+
<h1>{`Page (${data.count})`}</h1>
5826+
<p>{fetcher.data}</p>
5827+
</>
5828+
);
58255829
},
58265830
async loader() {
58275831
await new Promise((r) => setTimeout(r, 10));
@@ -5853,6 +5857,7 @@ function testDomRouter(
58535857
dfd.resolve("FETCH");
58545858
await waitFor(() => screen.getByText("Num fetchers: 0"));
58555859
expect(getHtml(container)).toMatch("Page (2)");
5860+
expect(getHtml(container)).toMatch("FETCH");
58565861
});
58575862

58585863
it("submitting fetchers w/redirects are cleaned up on completion", async () => {

packages/router/__tests__/flush-sync-test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { IDLE_NAVIGATION } from "../router";
21
import { cleanup, setup } from "./utils/data-router-setup";
3-
import { createFormData, tick } from "./utils/utils";
2+
import { createFormData } from "./utils/utils";
43

54
describe("flushSync", () => {
65
// Detect any failures inside the router navigate code

0 commit comments

Comments
 (0)