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
484 B

import * as assert from 'node:assert';
import { describe, it } from 'node:test';
import { NotEnoughMethodArgumentsError } from '../../../src/server/errors';
describe('NotEnoughMethodArgumentsError', () => {
it('verifyCompilerError', () => {
const er = new NotEnoughMethodArgumentsError('enable', 3, 1);
assert.strictEqual(er.name, 'NotEnoughMethodArgumentsError');
assert.strictEqual(er.message, 'The method "enable" requires 3 parameters but was only passed 1.');
});
});