From b6da0ee6d06fc16d0509d167c6afe520126c788b Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Wed, 23 Dec 2015 15:13:48 +0100 Subject: [PATCH] expanded test case a bit --- test/cases/parsing/harmony/index.js | 1 + test/cases/parsing/harmony/node_modules/abc.js | 2 +- test/cases/parsing/harmony/node_modules/abc_c.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 test/cases/parsing/harmony/node_modules/abc_c.js diff --git a/test/cases/parsing/harmony/index.js b/test/cases/parsing/harmony/index.js index cf7bf3a98..d206ca386 100644 --- a/test/cases/parsing/harmony/index.js +++ b/test/cases/parsing/harmony/index.js @@ -29,6 +29,7 @@ it("should import a whole module", function() { var copy = (function(a) { return a; }(abc)); copy.a.should.be.eql("a"); copy.b.should.be.eql("b"); + (typeof abc).should.be.eql("object"); }); it("should export functions", function() { diff --git a/test/cases/parsing/harmony/node_modules/abc.js b/test/cases/parsing/harmony/node_modules/abc.js index 1ad182fcc..4626e8ece 100644 --- a/test/cases/parsing/harmony/node_modules/abc.js +++ b/test/cases/parsing/harmony/node_modules/abc.js @@ -1,3 +1,3 @@ export var a = "a"; export var b = "b"; -export var c = "c"; \ No newline at end of file +export {c} from "./abc_c"; \ No newline at end of file diff --git a/test/cases/parsing/harmony/node_modules/abc_c.js b/test/cases/parsing/harmony/node_modules/abc_c.js new file mode 100644 index 000000000..3cd46f04f --- /dev/null +++ b/test/cases/parsing/harmony/node_modules/abc_c.js @@ -0,0 +1 @@ +export var c = "c";