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

toBeRequested mocks wait for calls to decrease #189

Closed
mgrybyk opened this issue Sep 7, 2020 · 0 comments
Closed

toBeRequested mocks wait for calls to decrease #189

mgrybyk opened this issue Sep 7, 2020 · 0 comments
Labels
bug Something isn't working network mock

Comments

@mgrybyk
Copy link
Member

mgrybyk commented Sep 7, 2020

const mock = browser.mock('**')
// some calls happened ...
// let's say mock.calls.length is more than 1
expect(mock).not.toBeRequested()

it doesn't make sense to wait for mock.calls length to decrease.

Actual Result
waiting mock.calls length to decrease which makes no sense

Expected Result
should not wait

@mgrybyk mgrybyk added bug Something isn't working network mock labels Sep 7, 2020
@mgrybyk mgrybyk closed this as completed Sep 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working network mock
Projects
None yet
Development

No branches or pull requests

1 participant