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/NotEnoughMethodArgumentsErr...

13 lines
465 B

import { Expect, Test } from 'alsatian';
import { NotEnoughMethodArgumentsError } from '../../../src/server/errors';
export class NotEnoughMethodArgumentsErrorTestFixture {
@Test()
public verifyCompilerError() {
const er = new NotEnoughMethodArgumentsError('enable', 3, 1);
Expect(er.name).toBe('NotEnoughMethodArgumentsError');
Expect(er.message).toBe('The method "enable" requires 3 parameters but was only passed 1.');
}
}