Files
meteor/packages/coffeescript/tests/coffeescript_tests.coffee
Geoffrey Booth 13fb390bc7 Move coffeescript and coffeescript-test-helper packages back into core. (#8960)
They depend on core packages like caching-compiler, but coffeescript-compiler
can remain in non-core, so it can update more frequently as npm coffeescript
gets updated.
2017-08-15 10:21:18 +00:00

31 lines
1.4 KiB
CoffeeScript

Meteor.__COFFEESCRIPT_PRESENT = true
# This is read in coffeescript_strict_tests.coffee.
share.coffeeShared = 789
Tinytest.add "coffeescript - compile", (test) -> test.isTrue true
# import/export statements must be top-level
`import { Meteor as testingForBacktickedImportedSymbol } from "meteor/meteor";`
Tinytest.add "coffeescript - import external package via backticked import statement", (test) ->
test.isTrue testingForBacktickedImportedSymbol?
`import { testingForImportedModule987654321 } from "./es2015_module.js";`
Tinytest.add "coffeescript - import local module via backticked import statement", (test) ->
test.isTrue testingForImportedModule987654321?
import { Meteor as testingForNativeImportedSymbol } from "meteor/meteor"
Tinytest.add "coffeescript - import external package via native import statement", (test) ->
test.isTrue testingForNativeImportedSymbol?
import { testingForImportedModule123456789 } from "./es2015_module.js";
Tinytest.add "coffeescript - import local module via native import statement", (test) ->
test.isTrue testingForImportedModule123456789?
import { testingForNativeImportedModule123456789 } from "./coffeescript_module.coffee";
Tinytest.add "coffeescript - import local module exported by a CoffeeScript native export statement, via native import statement", (test) ->
test.isTrue testingForNativeImportedModule123456789?