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.spec.ts

24 lines
668 B

import { Expect, Test } from 'alsatian';
import { AppCompiler } from '../../../src/server/compiler';
export class AppCompilerTestFixture {
@Test()
public verifyStorageFileToCompiler() {
const compiler = new AppCompiler();
Expect(() => compiler.normalizeStorageFiles({})).not.toThrow();
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,
};
Expect(compiler.normalizeStorageFiles(files)).toEqual(expected);
}
}