Skip to content

expect(chrome.runtime.onMessage.addListener).toHaveBeenCalled() #20

@fregante

Description

@fregante

Is your feature request related to a problem? Please describe.

I'm trying to test that a function is registering events, but it seem that this use case was not considered. The readme helpfully demoes the testing of events but not in the same way.

Describe the solution you'd like

addListener should be mocked so that I can expect calls on it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions