forked from foxbenjaminfox/meteor-coffeescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
coffeescript_tests.js
24 lines (21 loc) · 948 Bytes
/
coffeescript_tests.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Tinytest.add("coffeescript - presence", (test) => {
test.isTrue(Meteor.__COFFEESCRIPT_PRESENT);
});
Tinytest.add("literate coffeescript - presence", (test) => {
test.isTrue(Meteor.__LITCOFFEESCRIPT_PRESENT);
test.isTrue(Meteor.__COFFEEMDSCRIPT_PRESENT);
});
Tinytest.add("coffeescript - exported variable", (test) => {
test.equal(COFFEESCRIPT_EXPORTED, 123);
test.equal(Package['coffeescript-test-helper'].COFFEESCRIPT_EXPORTED, 123);
});
Tinytest.add("event/helpers wrappers - presence", (test) => {
test.isTrue(Meteor.__COFFEESCRIPT_HELPER_WRAPPER_PRESENT);
test.isTrue(Meteor.__COFFEESCRIPT_EVENT_WRAPPER_PRESENT);
});
Tinytest.add("event/helpers wrappers - template variable", (test) => {
test.equal(Template.testTemplate.HELPER_EXPORTED, 569);
test.equal(Template.testTemplate.EVENT_EXPORTED, 891);
test.equal(Template.testTemplate2.HELPER1_EXPORTED, 938);
test.equal(Template.testTemplate2.HELPER2_EXPORTED, 114);
});