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/MustContainFunctionError.sp...

14 lines
457 B

import { Expect, Test } from 'alsatian';
import { MustContainFunctionError } from '../../../src/server/errors';
export class MustContainFunctionErrorTestFixture {
@Test()
public verifyCompilerError() {
const er = new MustContainFunctionError('App.ts', 'getVersion');
Expect(er.name).toBe('MustContainFunction');
Expect(er.message).toBe('The App (App.ts) doesn\'t have a "getVersion" function which is required.');
}
}