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
expect().toReturnWith()
The following fails when it should pass:
import { expect, fn } from "@std/expect"; const mock = fn(() => 42); expect(mock).toHaveReturnedWith(42);
The text was updated successfully, but these errors were encountered:
expect().not.toReturnWith()
It is expected to fail because mock is not called. You need to call mock to pass that check:
mock
import { expect, fn } from "@std/expect"; const mock = fn(() => 42); mock(); expect(mock).toHaveReturnedWith(42);
Sorry, something went wrong.
Yeah, I realised my understanding of mock() was wrong. Thanks!
mock()
No branches or pull requests
The following fails when it should pass:
The text was updated successfully, but these errors were encountered: