mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
10 lines
377 B
CoffeeScript
10 lines
377 B
CoffeeScript
|
describe "TypeScript transpiler support", ->
|
||
|
describe "when there is a .ts file", ->
|
||
|
it "transpiles it using typescript", ->
|
||
|
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()
|