Fixed test for the previous commit

This commit is contained in:
Amaury
2021-07-06 14:52:50 +02:00
parent fcf7c24b86
commit 086236f719
3 changed files with 7 additions and 7 deletions

View File

@ -420,7 +420,7 @@ describe("test class RSS: jsonfile", function () {
// then
await clock.tickAsync(1);
expect(updateListenerSpy).to.have.been.calledOnce;
expect(newEntriesListenerSpy).to.have.been.calledOnce;
expect(newEntriesListenerSpy).to.not.have.been.called;
// given
stubParser.resolves(newRSSOutput);
@ -428,7 +428,7 @@ describe("test class RSS: jsonfile", function () {
// then
await clock.tickAsync(60000);
expect(updateListenerSpy).to.have.been.calledTwice;
expect(newEntriesListenerSpy).to.have.been.calledTwice;
expect(newEntriesListenerSpy).to.have.been.calledOnce;
expect(newEntriesListenerSpy).to.have.been.calledWith([newEntry]);
// given