Skip to content

Commit 7060072

Browse files
committed
added test case
1 parent eb202ab commit 7060072

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default function test() { return "ok"; }
2+
3+
var a = test();
4+
5+
export { a };
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default function test() { return "ok"; }
2+
3+
var b = test();
4+
5+
export { b };
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { a } from "./a";
2+
import x, { b } from "./b";
3+
4+
it("should be able to use exported function", function() {
5+
a.should.be.eql("ok");
6+
b.should.be.eql("ok");
7+
x().should.be.eql("ok");
8+
});

0 commit comments

Comments
 (0)