test: fix fetch related tests
This commit is contained in:
@@ -14,12 +14,11 @@ beforeEach(() => flushdb());
|
||||
beforeEach(() => {
|
||||
jest.resetAllMocks();
|
||||
fetchMock.resetMocks();
|
||||
fetchMock.doMock();
|
||||
});
|
||||
|
||||
const ip = "127.0.0.1";
|
||||
|
||||
fetchMock.enableMocks();
|
||||
|
||||
describe("DeliverWebhookTask", () => {
|
||||
test("should hit the subscription url and record a delivery", async () => {
|
||||
const subscription = await buildWebhookSubscription({
|
||||
|
||||
Reference in New Issue
Block a user