Skip to content

Commit

Permalink
adding fetch-mock-tests for sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
ccaynoski authored and wheresrhys committed Jun 15, 2024
1 parent dff7a0e commit c715e28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/fetch-mock-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ sandbox.get("http://test.com", {
redirectUrl: "http://example.org"
});

const stickySandbox = fetchMock.sandbox();
stickySandbox.sticky("http://test.com", 200);
stickySandbox.mock("http://test.com", 200, { sticky: true });

const response: fetchMock.MockResponseObject = {
throws: new Error('error'),
};
Expand Down

0 comments on commit c715e28

Please sign in to comment.