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;