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

How to remove the registred plugin ? #74

Open
Dakad opened this issue Feb 8, 2018 · 1 comment
Open

How to remove the registred plugin ? #74

Dakad opened this issue Feb 8, 2018 · 1 comment

Comments

@Dakad
Copy link

Dakad commented Feb 8, 2018

I'm writing some unit test for a chrome-extension and I was testing the function that uses chrome.i18n.getMessage(). Each test passes smoothly at first but I have to skip the second test on the specific function.
image.

But after testing my function by removing the skip at line 57, that happens :

image

According to the Wiki about Cookie plugin, I assume the registered plugin must be removed after the test in order to restore the sinon stubs.
I tried the chrome.flush() and delete chrome, both didn't work.

** ❓ Does somebody know to do this ❓ **

@acvetkov
Copy link
Owner

Unfortunatelly, there is no way to remove registered plugins.
Feel free to open pull request!

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