We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using this simple case:
const test = require("ava"); const td = require("testdouble"); const reducer = async (state) => { const existing = await state.foo(); console.log("existing:", existing); }; test("foo", async (t) => { const foo = td.func(".foo"); const state = td.object({ foo }); td.when(foo()).thenResolve({ id: "123" }); await reducer(state); });
existing: undefined is logged, whereas I believe, and intend it to, log: existing: { id: "123" }
existing: undefined
existing: { id: "123" }
am I missing something very basic here?
Reproduce here: https://codesandbox.io/s/relaxed-montalcini-lzfszy?file=/index.js
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Using this simple case:
existing: undefined
is logged, whereas I believe, and intend it to, log:existing: { id: "123" }
am I missing something very basic here?
Reproduce here: https://codesandbox.io/s/relaxed-montalcini-lzfszy?file=/index.js
The text was updated successfully, but these errors were encountered: