From f041360a62c8744dc13f9073fb00e04fb3966a2f Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Fri, 15 May 2020 15:13:04 +1000 Subject: [PATCH] test-integration add occurence count on logs message --- integration_test/common.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/integration_test/common.js b/integration_test/common.js index dd2cb4214..faf25e43c 100644 --- a/integration_test/common.js +++ b/integration_test/common.js @@ -621,12 +621,19 @@ module.exports = { const foundLines = renderLogs.filter(log => log.message.includes(str)); // eslint-disable-next-line no-unused-expressions - chai.expect(foundLines.length > 0, `'${str}' not found in logs but was expected`).to.be - .true; + chai.expect( + foundLines.length > 0, + `'${str}' not found in logs but was expected` + ).to.be.true; if (count) { // eslint-disable-next-line no-unused-expressions - chai.expect(foundLines.length, `'${str}' found but not the correct number of times`).to.be.equal(count); + chai + .expect( + foundLines.length, + `'${str}' found but not the correct number of times` + ) + .to.be.equal(count); } },