Skip to content

Commit

Permalink
Enhance fetcher loader submission test
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Dec 6, 2022
1 parent facf894 commit 89b953b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/router/__tests__/router-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6953,6 +6953,10 @@ describe("a router", () => {
formData: createFormData({ key: "value" }),
});
expect(A.fetcher.state).toBe("loading");
expect(A.fetcher.formMethod).toBe("get");
expect(A.fetcher.formAction).toBe("/foo");
expect(A.fetcher.formData).toEqual(createFormData({ key: "value" }));
expect(A.fetcher.formEncType).toBe("application/x-www-form-urlencoded");
expect(
new URL(
A.loaders.foo.stub.mock.calls[0][0].request.url
Expand Down

0 comments on commit 89b953b

Please sign in to comment.