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.
.
But after testing my function by removing the skip at line 57, that happens :
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.
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. .But after testing my function by removing the
skip
at line 57, that happens :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()
anddelete chrome
, both didn't work.❓ Does somebody know to do this ❓