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.te...

14 lines
476 B

import * as assert from 'node:assert';
import { describe, it } from 'node:test';
import { MustContainFunctionError } from '../../../src/server/errors';
describe('MustContainFunctionError', () => {
it('verifyCompilerError', () => {
const er = new MustContainFunctionError('App.ts', 'getVersion');
assert.strictEqual(er.name, 'MustContainFunction');
assert.strictEqual(er.message, 'The App (App.ts) doesn\'t have a "getVersion" function which is required.');
});
});