Use spy.resetHistory instead of reset
Reset was deprecated in 4.1.4 and removed in 5.0.
This commit is contained in:
parent
a8dce25cef
commit
aa908516eb
1 changed files with 3 additions and 3 deletions
|
@ -67,7 +67,7 @@ describe("Zotero.Utilities.Internal", function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
spy.reset();
|
spy.resetHistory();
|
||||||
});
|
});
|
||||||
|
|
||||||
after(function () {
|
after(function () {
|
||||||
|
@ -86,7 +86,7 @@ describe("Zotero.Utilities.Internal", function () {
|
||||||
let val = yield gen.next().value;
|
let val = yield gen.next().value;
|
||||||
assert.isTrue(val);
|
assert.isTrue(val);
|
||||||
assert.isTrue(spy.calledWith(i));
|
assert.isTrue(spy.calledWith(i));
|
||||||
spy.reset();
|
spy.resetHistory();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ describe("Zotero.Utilities.Internal", function () {
|
||||||
let val = yield gen.next().value;
|
let val = yield gen.next().value;
|
||||||
assert.isTrue(val);
|
assert.isTrue(val);
|
||||||
assert.isTrue(spy.calledWith(i));
|
assert.isTrue(spy.calledWith(i));
|
||||||
spy.reset();
|
spy.resetHistory();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Another interval would put us over maxTime, so return false immediately
|
// Another interval would put us over maxTime, so return false immediately
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue