Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

include test for referencing a plain AMD module via \!

  • Loading branch information...
commit 44b0c49d4a432284a7d2cdf4f706952b0af2d875 1 parent e57d186
@jrburke authored
Showing with 21 additions and 1 deletion.
  1. +15 −0 tasks.txt
  2. +1 −0  tests/module/module-tests.js
  3. +5 −1 tests/module/one.hm
View
15 tasks.txt
@@ -7,3 +7,18 @@ What about setting the export for the module to a function?
* Get builds to work
* Just use the text plugin, and use its inlining? So that import * can be supported.
+
+switch to text plugin
+put in demo
+
+
+Text parsing that fails:
+
+module two from 'two',
+ three from 'three',
+ four from '!four'; //comment here
+
+module two from 'two',
+ three from 'three',
+ //comment in here.
+ four from '!four';
View
1  tests/module/module-tests.js
@@ -13,6 +13,7 @@ function (one) {
t.is("two", one.twoName);
t.is("two function", one.twoFunction());
t.is("three", one.threeName);
+ t.is("four", one.fourName);
}
]
);
View
6 tests/module/one.hm
@@ -1,9 +1,13 @@
+//Ask for some modules, use AMD module for four.
module two from 'two',
- three from 'three';
+ three from 'three',
+ four from '!four';
export var twoName = two.name;
export var twoFunction = two.func;
export var threeName = three.name;
+
+export var fourName = four.name;
Please sign in to comment.
Something went wrong with that request. Please try again.