Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Nov 14, 2023
1 parent 5563672 commit d5b9128
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import {
useFetchers,
useLoaderData,
useLocation,
useMatches,
useNavigate,
useNavigation,
useRouteError,
Expand Down Expand Up @@ -5821,7 +5820,12 @@ function testDomRouter(
Component() {
let fetcher = useFetcher({ key: "me" });
let data = useLoaderData() as { count: number };
return <h1>{`Page (${data.count})`}</h1>;
return (
<>
<h1>{`Page (${data.count})`}</h1>
<p>{fetcher.data}</p>
</>
);
},
async loader() {
await new Promise((r) => setTimeout(r, 10));
Expand Down Expand Up @@ -5853,6 +5857,7 @@ function testDomRouter(
dfd.resolve("FETCH");
await waitFor(() => screen.getByText("Num fetchers: 0"));
expect(getHtml(container)).toMatch("Page (2)");
expect(getHtml(container)).toMatch("FETCH");
});

it("submitting fetchers w/redirects are cleaned up on completion", async () => {
Expand Down
3 changes: 1 addition & 2 deletions packages/router/__tests__/flush-sync-test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { IDLE_NAVIGATION } from "../router";
import { cleanup, setup } from "./utils/data-router-setup";
import { createFormData, tick } from "./utils/utils";
import { createFormData } from "./utils/utils";

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

0 comments on commit d5b9128

Please sign in to comment.