From bd5e8b8f7160f66594f89becad1e71099dd8f2d3 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Tue, 13 Jul 2021 12:34:56 +0100 Subject: [PATCH] [misc] fix chai assertions .equal.true -> .equals(true) --- .../real-time/test/unit/js/EventLoggerTests.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/services/real-time/test/unit/js/EventLoggerTests.js b/services/real-time/test/unit/js/EventLoggerTests.js index f647741fcf..fd759c8b42 100644 --- a/services/real-time/test/unit/js/EventLoggerTests.js +++ b/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) }) })