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

Cannot use hasListeners(), _listeners instead #98

Open
jdelafon opened this issue Feb 14, 2020 · 0 comments
Open

Cannot use hasListeners(), _listeners instead #98

jdelafon opened this issue Feb 14, 2020 · 0 comments

Comments

@jdelafon
Copy link

I cannot use this:

import * as chromeMock from 'sinon-chrome'

chromeMock.webRequest.onBeforeRequest.hasListeners()

TypeError: chromeMock.webRequest.onBeforeRequest.hasListeners is not a function

But I can do this instead (which my IDE and myself don't like much):

import * as chromeMock from 'sinon-chrome'

chromeMock.webRequest.onBeforeRequest._listeners

[[Function ...]]

Looks like a bug to me, is it?

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

1 participant