Use spy.resetHistory instead of reset

Reset was deprecated in 4.1.4 and removed in 5.0.
This commit is contained in:
Sylvester Keil 2018-08-04 22:07:27 +02:00
parent a8dce25cef
commit aa908516eb
No known key found for this signature in database
GPG key ID: 878933BCEAB25A10

View file

@ -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