Fix eslint no-unused-expressions in tests

[MAILPOET-1085]
This commit is contained in:
Pavel Dohnal
2017-09-06 15:41:41 +01:00
parent 72c0a6f165
commit 4e508855fc
6 changed files with 12 additions and 11 deletions

View File

@ -307,7 +307,7 @@ define([
});
it('listens to the event', function () {
expect(onStub).to.have.been.calledOnce;
expect(onStub).to.have.been.callCount(1);
expect(onStub).to.have.been.calledWith('replaceAllButtonStyles', sinon.match.func);
});
@ -321,7 +321,7 @@ define([
}
};
callback(data);
expect(model.set).to.have.been.calledOnce;
expect(model.set).to.have.been.callCount(1);
expect(model.set).to.have.been.calledWithMatch(sinon.match.has('readMoreButton', data));
});
});