mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-05 23:29:00 +02:00
[misc] fix chai assertions .equal.true -> .equals(true)
This commit is contained in:
@@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user