mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 19:17:09 +03:00
Decaffeinate the following files. * atom-protocol-handler * babel-spec * buffered-node-process * buffered-process * clipboard * context-menu-manager * decoration-manager * default-directory-provider * deserializer-manager * file-system-blob-store * keymap-extensions * menu-manager * module-cache * pane-axis-element * pane-container-element * pane-element * package-spec * squirel-update * styles-element-spec * task-spec * typescript-spec * spec-helper-platform
12 lines
434 B
JavaScript
12 lines
434 B
JavaScript
describe('TypeScript transpiler support', function() {
|
|
describe('when there is a .ts file', () =>
|
|
it('transpiles it using typescript', function() {
|
|
const transpiled = require('./fixtures/typescript/valid.ts');
|
|
expect(transpiled(3)).toBe(4);
|
|
}));
|
|
|
|
describe('when the .ts file is invalid', () =>
|
|
it('does not transpile', () =>
|
|
expect(() => require('./fixtures/typescript/invalid.ts')).toThrow()));
|
|
});
|