Update some Sinon reset() calls

In Sinon 2, reset() now resets both behavior and history, so if a stub
specifies behavior and we want to use it again, we have to call
resetHistory().
This commit is contained in:
Dan Stillman 2017-06-01 15:30:06 -04:00
parent 522391bc3e
commit ede03f4366
5 changed files with 12 additions and 11 deletions

View file

@ -54,7 +54,7 @@ describe("Sync Preferences", function () {
beforeEach(function* (){
yield win.Zotero_Preferences.Sync.unlinkAccount(false);
deleteAPIKey.reset();
deleteAPIKey.resetHistory();
Zotero.alert.reset();
});