Skip to content

Commit dc0e9dc

Browse files
committed
chore: format
1 parent 68bbf9c commit dc0e9dc

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

packages/react-router/__tests__/dom/fetcher-submit-tagname-test.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import * as React from "react";
22
import { render, fireEvent, screen } from "@testing-library/react";
33
import "@testing-library/jest-dom";
4-
import {
5-
RouterProvider,
6-
createBrowserRouter,
7-
useFetcher,
8-
} from "../../index";
4+
import { RouterProvider, createBrowserRouter, useFetcher } from "../../index";
95
import getWindow from "../utils/getWindow";
106

117
describe("fetcher.submit with tagName property", () => {
@@ -25,7 +21,7 @@ describe("fetcher.submit with tagName property", () => {
2521
onClick={() =>
2622
fetcher.submit(
2723
{ tagName: "div", data: "test" },
28-
{ method: "post" }
24+
{ method: "post" },
2925
)
3026
}
3127
>
@@ -37,7 +33,7 @@ describe("fetcher.submit with tagName property", () => {
3733
],
3834
{
3935
window: getWindow("/"),
40-
}
36+
},
4137
);
4238

4339
render(<RouterProvider router={router} />);
@@ -70,7 +66,7 @@ describe("fetcher.submit with tagName property", () => {
7066
id: "test-id",
7167
value: "test-value",
7268
},
73-
{ method: "post" }
69+
{ method: "post" },
7470
)
7571
}
7672
>
@@ -82,7 +78,7 @@ describe("fetcher.submit with tagName property", () => {
8278
],
8379
{
8480
window: getWindow("/"),
85-
}
81+
},
8682
);
8783

8884
render(<RouterProvider router={router} />);

packages/react-router/lib/dom/dom.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ export const defaultMethod: HTMLFormMethod = "get";
77
const defaultEncType: FormEncType = "application/x-www-form-urlencoded";
88

99
export function isHtmlElement(object: any): object is HTMLElement {
10-
return (
11-
typeof HTMLElement !== "undefined" && object instanceof HTMLElement
12-
);
10+
return typeof HTMLElement !== "undefined" && object instanceof HTMLElement;
1311
}
1412

1513
export function isButtonElement(object: any): object is HTMLButtonElement {

0 commit comments

Comments
 (0)