The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/packages/apps-engine/tests/server/errors/CommandAlreadyExistsError.s...

13 lines
438 B

import { Expect, Test } from 'alsatian';
import { CommandAlreadyExistsError } from '../../../src/server/errors';
export class CommandAlreadyExistsErrorTestFixture {
@Test()
public verifyCommandAlreadyExistsError() {
const er = new CommandAlreadyExistsError('testing');
Expect(er.name).toBe('CommandAlreadyExists');
Expect(er.message).toBe('The command "testing" already exists in the system.');
}
}