mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
[misc] fix chai assertions .equal.true -> .equals(true)
This commit is contained in:
parent
89928dd19d
commit
bd5e8b8f71
1 changed files with 9 additions and 8 deletions
|
@ -54,8 +54,9 @@ describe('EventLogger', function () {
|
|||
})
|
||||
|
||||
return it('should increment the valid event metric', function () {
|
||||
return this.metrics.inc.calledWith(`event.${this.channel}.valid`, 1)
|
||||
.should.equal.true
|
||||
return this.metrics.inc
|
||||
.calledWith(`event.${this.channel}.valid`, 1)
|
||||
.should.equals(true)
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -78,8 +79,9 @@ describe('EventLogger', function () {
|
|||
})
|
||||
|
||||
return it('should increment the duplicate event metric', function () {
|
||||
return this.metrics.inc.calledWith(`event.${this.channel}.duplicate`, 1)
|
||||
.should.equal.true
|
||||
return this.metrics.inc
|
||||
.calledWith(`event.${this.channel}.duplicate`, 1)
|
||||
.should.equals(true)
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -107,10 +109,9 @@ describe('EventLogger', function () {
|
|||
})
|
||||
|
||||
return it('should increment the out-of-order event metric', function () {
|
||||
return this.metrics.inc.calledWith(
|
||||
`event.${this.channel}.out-of-order`,
|
||||
1
|
||||
).should.equal.true
|
||||
return this.metrics.inc
|
||||
.calledWith(`event.${this.channel}.out-of-order`, 1)
|
||||
.should.equals(true)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue