From c715e285e7cfb8546873e208b713ad04c5678c9f Mon Sep 17 00:00:00 2001 From: ccaynoski <65250020+ccaynoski@users.noreply.github.com> Date: Wed, 20 Oct 2021 14:18:11 -0400 Subject: [PATCH] adding fetch-mock-tests for sticky --- types/fetch-mock-tests.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/fetch-mock-tests.ts b/types/fetch-mock-tests.ts index a75b1cb2..90ed7622 100644 --- a/types/fetch-mock-tests.ts +++ b/types/fetch-mock-tests.ts @@ -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'), };