Files
meteor/packages/coffeescript/coffeescript_tests.js
David Glasser e33694874d Test slices now never contain exports.
@export is now an error in test slices.

This is preparation for ensuring that any slice with exports has at least
"Package.foo = {}"; without this commit, both the use and test slice would (with
that change) try to overwrite Package.foo.

Remove the attempt to allow @export in 'use strict' CoffeeScript files:
ECMAScript 'use strict' is fundamentally incompatible with our implementation of
exports, and it was probably a bug that this used to work at all.
2013-06-26 12:26:12 -07:00

12 lines
417 B
JavaScript

Tinytest.add("coffeescript - presence", function(test) {
test.isTrue(Meteor.__COFFEESCRIPT_PRESENT);
});
Tinytest.add("literate coffeescript - presence", function(test) {
test.isTrue(Meteor.__LITCOFFEESCRIPT_PRESENT);
});
Tinytest.add("coffeescript - exported variable", function(test) {
test.equal(COFFEESCRIPT_EXPORTED, 123);
test.equal(Package['coffeescript-test-helper'].COFFEESCRIPT_EXPORTED, 123);
});