1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00

Removed obsolete test cases

This commit is contained in:
marzavec 2022-06-22 13:42:46 -05:00
parent 2bbb507f01
commit b80b5ca9d1
2 changed files with 0 additions and 33 deletions

View File

@ -91,20 +91,6 @@ describe('Checking changenick module', () => {
expect(resp).to.be.true; 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 () => { it('should not update if there is no change', async () => {
const resp = await importedModule.run({ const resp = await importedModule.run({

View File

@ -139,25 +139,6 @@ describe('Checking join module', () => {
expect(resp).to.be.true; 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 () => { it('should prevent two of the same name in the same channel', async () => {
const newSocket = Object.assign({}, mocks.authedSocket); const newSocket = Object.assign({}, mocks.authedSocket);
newSocket.channel = undefined; newSocket.channel = undefined;