pulsar/spec/typescript-spec.js
Sadick 83d6c09b10
Decaffeinate specs (#21546)
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
2020-10-30 16:40:57 +03:00

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()));
});