Просмотр исходного кода

[misc] fix chai assertions .equal.true -> .equals(true)

Jakob Ackermann 5 лет назад
Родитель
Сommit
bd5e8b8f71
1 измененных файлов с 9 добавлено и 8 удалено
  1. 9 8
      services/real-time/test/unit/js/EventLoggerTests.js

+ 9 - 8
services/real-time/test/unit/js/EventLoggerTests.js

@@ -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)
       })
     })