Skip to content

Commit e02ee4c

Browse files
Noel Yooghengeveld
authored andcommitted
test: fix arguments (#52)
This cleans up some test invocations, omitting unused arguments.
1 parent 4255897 commit e02ee4c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/Async.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ beforeEach(abortCtrl.abort.mockClear)
2323
afterEach(cleanup)
2424

2525
describe("Async", () => {
26-
describe("common", common(Async, abortCtrl))
27-
describe("with `promise`", withPromise(Async, abortCtrl))
26+
describe("common", common(Async))
27+
describe("with `promise`", withPromise(Async))
2828
describe("with `promiseFn`", withPromiseFn(Async, abortCtrl))
2929
describe("with `deferFn`", withDeferFn(Async, abortCtrl))
30-
describe("with `reducer`", withReducer(Async, abortCtrl))
31-
describe("with `dispatcher`", withDispatcher(Async, abortCtrl))
30+
describe("with `reducer`", withReducer(Async))
31+
describe("with `dispatcher`", withDispatcher(Async))
3232

3333
test("an unrelated change in props does not update the Context", async () => {
3434
let one

src/useAsync.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ const Fetch = ({ children = () => null, input, init, options }) =>
3131
children(useFetch(input, init, options))
3232

3333
describe("useAsync", () => {
34-
describe("common", common(Async, abortCtrl))
35-
describe("with `promise`", withPromise(Async, abortCtrl))
34+
describe("common", common(Async))
35+
describe("with `promise`", withPromise(Async))
3636
describe("with `promiseFn`", withPromiseFn(Async, abortCtrl))
3737
describe("with `deferFn`", withDeferFn(Async, abortCtrl))
38-
describe("with `reducer`", withReducer(Async, abortCtrl))
39-
describe("with `dispatcher`", withDispatcher(Async, abortCtrl))
38+
describe("with `reducer`", withReducer(Async))
39+
describe("with `dispatcher`", withDispatcher(Async))
4040

4141
test("accepts [promiseFn, options] shorthand, with the former taking precedence", async () => {
4242
const promiseFn1 = () => resolveTo("done")

0 commit comments

Comments
 (0)