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

bug: simple expect().toReturnWith() works incorrectly #6017

Open
iuioiua opened this issue Sep 19, 2024 · 1 comment
Open

bug: simple expect().toReturnWith() works incorrectly #6017

iuioiua opened this issue Sep 19, 2024 · 1 comment

Comments

@iuioiua
Copy link
Collaborator

iuioiua commented Sep 19, 2024

The following fails when it should pass:

import { expect, fn } from "@std/expect";

const mock = fn(() => 42);

expect(mock).toHaveReturnedWith(42);
@iuioiua iuioiua changed the title bug: simple expect().not.toReturnWith() works incorrectly bug: simple expect().toReturnWith() works incorrectly Sep 19, 2024
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

2 participants
@iuioiua and others