Skip to content

Commit

Permalink
Attempt to reproduce issue #209.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Aug 4, 2018
1 parent 84070a1 commit 94d1651
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/import-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,9 @@ describe("import declarations", () => {
assert.strictEqual(d, _d);
assert.strictEqual(e, _e);
});

it("`import module from ...` should work (issue #209)", () => {
import { childId } from "./import/issue-209/parent";
assert.strictEqual(childId, __dirname + "/import/issue-209/child.js");
});
});
3 changes: 3 additions & 0 deletions test/import/issue-209/child.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function () {
return module;
}
2 changes: 2 additions & 0 deletions test/import/issue-209/parent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import module from "./child.js";
export const childId = module().id;

0 comments on commit 94d1651

Please sign in to comment.