From 4f5885b0e309d7942c3e1b2bb88a67c530e02189 Mon Sep 17 00:00:00 2001 From: Matt O'Keefe Date: Wed, 12 Jul 2023 11:30:02 -0500 Subject: [PATCH] fix test --- src/help.test.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/help.test.js b/src/help.test.js index 401cb2d3..c9228898 100644 --- a/src/help.test.js +++ b/src/help.test.js @@ -96,9 +96,7 @@ describe('help', () => { await wait(55); expect(room.messages.length).to.equal(2); expect(room.messages[1].length).to.equal(2); - expect(room.messages[1][1]).to.equal( - `${Helpers.capitalizeFirstLetter(room.robot.name)} [${pjson.name}](${pjson.repository.url}): [v${pjson.version}](https://www.npmjs.com/package/${pjson.name}).`, - ); + expect(room.messages[1][1]).to.equal(`${Helpers.capitalizeFirstLetter(room.robot.name)} <${pjson.repository.url}|${pjson.name}> .`); }); it('should respond with the name and version of the package when asked -v', async () => { @@ -106,9 +104,7 @@ describe('help', () => { await wait(55); expect(room.messages.length).to.equal(2); expect(room.messages[1].length).to.equal(2); - expect(room.messages[1][1]).to.equal( - `${Helpers.capitalizeFirstLetter(room.robot.name)} [${pjson.name}](${pjson.repository.url}): [v${pjson.version}](https://www.npmjs.com/package/${pjson.name}).`, - ); + expect(room.messages[1][1]).to.equal(`${Helpers.capitalizeFirstLetter(room.robot.name)} <${pjson.repository.url}|${pjson.name}> .`); }); it('should respond with the name and version of the package when asked `plusplus version`', async () => { @@ -116,9 +112,7 @@ describe('help', () => { await wait(55); expect(room.messages.length).to.equal(2); expect(room.messages[1].length).to.equal(2); - expect(room.messages[1][1]).to.equal( - `${Helpers.capitalizeFirstLetter(room.robot.name)} [${pjson.name}](${pjson.repository.url}): [v${pjson.version}](https://www.npmjs.com/package/${pjson.name}).`, - ); + expect(room.messages[1][1]).to.equal(`${Helpers.capitalizeFirstLetter(room.robot.name)} <${pjson.repository.url}|${pjson.name}> .`); }); }); });