Skip to content

Commit

Permalink
test: fix types test for fetch-mock package
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Aug 28, 2024
1 parent 66e4ffc commit 7510b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fetch-mock/types/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ lastUrl = fetchMock.lastUrl("http://test.com", "GET");
lastUrl = fetchMock.lastUrl("http://test.com", {
method: "GET",
});
let lastOptions: (fetchMock.MockOptions|undefined) = fetchMock.lastOptions();
let lastOptions: (RequestInit|undefined) = fetchMock.lastOptions();
lastOptions = fetchMock.lastOptions(true);
lastOptions = fetchMock.lastOptions("http://test.com");
lastOptions = fetchMock.lastOptions(/https?:\/\/test.com/);
Expand Down

0 comments on commit 7510b21

Please sign in to comment.