diff --git a/src/Async.spec.js b/src/Async.spec.js index 1ec6599e..215a9488 100644 --- a/src/Async.spec.js +++ b/src/Async.spec.js @@ -23,12 +23,12 @@ beforeEach(abortCtrl.abort.mockClear) afterEach(cleanup) describe("Async", () => { - describe("common", common(Async, abortCtrl)) - describe("with `promise`", withPromise(Async, abortCtrl)) + describe("common", common(Async)) + describe("with `promise`", withPromise(Async)) describe("with `promiseFn`", withPromiseFn(Async, abortCtrl)) describe("with `deferFn`", withDeferFn(Async, abortCtrl)) - describe("with `reducer`", withReducer(Async, abortCtrl)) - describe("with `dispatcher`", withDispatcher(Async, abortCtrl)) + describe("with `reducer`", withReducer(Async)) + describe("with `dispatcher`", withDispatcher(Async)) test("an unrelated change in props does not update the Context", async () => { let one diff --git a/src/useAsync.spec.js b/src/useAsync.spec.js index 3b08913f..5e87c7e3 100644 --- a/src/useAsync.spec.js +++ b/src/useAsync.spec.js @@ -31,12 +31,12 @@ const Fetch = ({ children = () => null, input, init, options }) => children(useFetch(input, init, options)) describe("useAsync", () => { - describe("common", common(Async, abortCtrl)) - describe("with `promise`", withPromise(Async, abortCtrl)) + describe("common", common(Async)) + describe("with `promise`", withPromise(Async)) describe("with `promiseFn`", withPromiseFn(Async, abortCtrl)) describe("with `deferFn`", withDeferFn(Async, abortCtrl)) - describe("with `reducer`", withReducer(Async, abortCtrl)) - describe("with `dispatcher`", withDispatcher(Async, abortCtrl)) + describe("with `reducer`", withReducer(Async)) + describe("with `dispatcher`", withDispatcher(Async)) test("accepts [promiseFn, options] shorthand, with the former taking precedence", async () => { const promiseFn1 = () => resolveTo("done")