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

Create Promise<Mocked> #321

Closed
kellpossible opened this issue Jan 18, 2023 · 2 comments
Closed

Create Promise<Mocked> #321

kellpossible opened this issue Jan 18, 2023 · 2 comments

Comments

@kellpossible
Copy link

kellpossible commented Jan 18, 2023

How do I create a promise of something that I mocked? I keep getting the following errors when using Promise.resolve(myMockedObject):

Error: Didn't expect mock.then([Function anonymous], [Function anonymous]) to be called.
@NiGhTTraX
Copy link
Owner

Thanks for raising this, @kellpossible! Fixed in 8.0.1.

@kellpossible
Copy link
Author

kellpossible commented Jan 19, 2023 via email

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