Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 64ae3d0

Browse files
committed
export star test for #236
1 parent 15dc9ba commit 64ae3d0

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

test/syntax/export-star.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './star-dep';
2+
export var bar = 'bar';

test/syntax/star-dep.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export var foo = 'foo';

test/test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,15 @@ function runTests() {
327327
});
328328
});
329329

330+
test('Export Star', function(assert) {
331+
System['import']('syntax/export-star').then(function(m) {
332+
assert(
333+
[m.foo, 'foo'],
334+
[m.bar, 'bar']
335+
);
336+
});
337+
});
338+
330339
test('Export default 1', function(assert, err) {
331340
System['import']('syntax/export-default').then(function(m) {
332341
assert(m['default'](), 'test');

0 commit comments

Comments
 (0)