updated mocha and sinon, fixed tests

This commit is contained in:
mserranom
2020-03-12 10:35:11 +01:00
parent ffb33ddb40
commit 3ff9c18dcb
8 changed files with 442 additions and 119 deletions

View File

@@ -84,9 +84,10 @@ describe('DockerLockManager', function() {
return this.runner.called.should.equal(false)
})
return it('should return an error', function() {
const error = new Errors.AlreadyCompilingError()
return this.callback.calledWithExactly(error).should.equal(true)
it('should return an error', function() {
this.callback
.calledWithExactly(sinon.match(Errors.AlreadyCompilingError))
.should.equal(true)
})
})
})