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
Cannot seem to get this to work:
sandbox.mock(Model) .expects('find') .twice() .onFirstCall() .yields(null, []) .onSecondCall() .chain('populate') .chain('exec') .yields(null, []);
The text was updated successfully, but these errors were encountered:
This is not supported but I think is possible to test using two different expectations right?
sandbox.mock(Model) .expects('find') .chain('exec') .yields(null, []) sandbox.mock(Model) .expects('find') .chain('populate') .chain('exec') .yields(null, []);
Sorry, something went wrong.
I don't think that is supported, I get the following error:
TypeError: Attempted to wrap find which is already wrapped
No branches or pull requests
Cannot seem to get this to work:
The text was updated successfully, but these errors were encountered: