Skip to content
New issue

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

td.explain should indicate thenCallback / thenResolve / thenReject from thenReturn #126

Closed
moeriki opened this issue Aug 31, 2016 · 0 comments

Comments

@moeriki
Copy link
Contributor

moeriki commented Aug 31, 2016

var fn = td.func();
td.when(fn()).thenResolve(true);
console.log(td.explain(fn));

Expected

{
  callCount: 0,
  calls: [],
  description: 'This test double has 1 stubbings and 0 invocations.\n\nStubbings:\n  - when called with `()`, then resolve `null`.',
  isTestDouble: true,
}

The important part is then resolve 'null'.

Actual

{
  callCount: 0,
  calls: [],
  description: 'This test double has 1 stubbings and 0 invocations.\n\nStubbings:\n  - when called with `()`, then return `null`.',
  isTestDouble: true,
}

I can make a pull request if accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant