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/compiler/AppCompiler.test.ts

24 lines
707 B

import * as assert from 'node:assert';
import { describe, it } from 'node:test';
import { AppCompiler } from '../../../src/server/compiler';
describe('AppCompiler', () => {
it('verifyStorageFileToCompiler', () => {
const compiler = new AppCompiler();
assert.doesNotThrow(() => compiler.normalizeStorageFiles({}));
const files: { [key: string]: string } = {
TestingApp$ts: 'act-like-this-is-real',
TestingAppCommand$ts: 'something-here-as well, yay',
};
const expected: { [key: string]: string } = {
'TestingApp.ts': files.TestingApp$ts,
'TestingAppCommand.ts': files.TestingAppCommand$ts,
};
assert.deepStrictEqual(compiler.normalizeStorageFiles(files), expected);
});
});