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:
parent
522391bc3e
commit
ede03f4366
5 changed files with 12 additions and 11 deletions
|
@ -99,16 +99,16 @@ describe("Zotero.FeedItems", function () {
|
|||
ids = Array.map(items, (i) => i.id);
|
||||
});
|
||||
|
||||
after(function() {
|
||||
save.restore();
|
||||
});
|
||||
|
||||
afterEach(function* () {
|
||||
save.reset();
|
||||
|
||||
yield clearFeeds();
|
||||
});
|
||||
|
||||
|
||||
after(function() {
|
||||
save.restore();
|
||||
});
|
||||
|
||||
it('should toggle all items read if at least one unread', function* () {
|
||||
items[0].isRead = false;
|
||||
yield items[0].saveTx();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue