Skip to content

sinon-chrome doesn't support promises for async functions #101

@faameunier

Description

@faameunier

Hi,

Something along the lines of

browser.browserAction.getBadgeText({}).then(() => {})

will fail as getBadgeText return undefined instead of a promise (which is a supported way to work with the webExtension API).

As a side note, I tried to implement a fix for #94 but it fails due to properties ref and the code is a bit too obscure for me on that part haha.

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions