From b80b5ca9d13931558adb70daa2181b714b7195a6 Mon Sep 17 00:00:00 2001 From: marzavec Date: Wed, 22 Jun 2022 13:42:46 -0500 Subject: [PATCH] Removed obsolete test cases --- test/changenick.test.js | 14 -------------- test/join.test.js | 19 ------------------- 2 files changed, 33 deletions(-) diff --git a/test/changenick.test.js b/test/changenick.test.js index cdc6c39..09c5fea 100644 --- a/test/changenick.test.js +++ b/test/changenick.test.js @@ -91,20 +91,6 @@ describe('Checking changenick module', () => { expect(resp).to.be.true; }); - - it('should prevent admin impersonation', async () => { - const resp = await importedModule.run({ - core: mocks.core, - server: mocks.server, - socket: mocks.plebSocket, - payload: { - cmd: 'changenick', - nick: 'admin', - }, - }); - - expect(resp).to.be.true; - }); it('should not update if there is no change', async () => { const resp = await importedModule.run({ diff --git a/test/join.test.js b/test/join.test.js index 6867d2d..2da3bca 100644 --- a/test/join.test.js +++ b/test/join.test.js @@ -139,25 +139,6 @@ describe('Checking join module', () => { expect(resp).to.be.true; }); - it('should prevent admin impersonation', async () => { - const newSocket = Object.assign({}, mocks.authedSocket); - newSocket.channel = undefined; - newSocket.hcProtocol = undefined; - - const resp = await importedModule.run({ - core: mocks.core, - server: mocks.server, - socket: newSocket, - payload: { - cmd: 'join', - nick: 'admin#test', - channel: 'cake', - }, - }); - - expect(resp).to.be.true; - }); - it('should prevent two of the same name in the same channel', async () => { const newSocket = Object.assign({}, mocks.authedSocket); newSocket.channel = undefined;