mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 16:49:40 +02:00
Fix form of chai not called assertion
This commit is contained in:
@@ -279,17 +279,17 @@ describe('iD.coreHistory', function () {
|
||||
history.pauseChangeDispatch();
|
||||
|
||||
history.perform(actionNoop, 'perform');
|
||||
expect(spy).to.have.been.notCalled;
|
||||
expect(spy).to.have.not.been.called;
|
||||
history.replace(actionNoop, 'replace');
|
||||
expect(spy).to.have.been.notCalled;
|
||||
expect(spy).to.have.not.been.called;
|
||||
history.overwrite(actionNoop, 'replace');
|
||||
expect(spy).to.have.been.notCalled;
|
||||
expect(spy).to.have.not.been.called;
|
||||
history.undo();
|
||||
expect(spy).to.have.been.notCalled;
|
||||
expect(spy).to.have.not.been.called;
|
||||
history.redo();
|
||||
expect(spy).to.have.been.notCalled;
|
||||
expect(spy).to.have.not.been.called;
|
||||
history.pop();
|
||||
expect(spy).to.have.been.notCalled;
|
||||
expect(spy).to.have.not.been.called;
|
||||
|
||||
var diff = history.resumeChangeDispatch();
|
||||
expect(spy).to.have.been.calledOnceWith(diff);
|
||||
@@ -300,7 +300,7 @@ describe('iD.coreHistory', function () {
|
||||
history.on('change', spy);
|
||||
|
||||
history.resumeChangeDispatch();
|
||||
expect(spy).to.have.been.notCalled;
|
||||
expect(spy).to.have.not.been.called;
|
||||
});
|
||||
|
||||
it('uses earliest difference if pause called multiple times', function() {
|
||||
|
||||
Reference in New Issue
Block a user