Skip to content

Commit d10bff9

Browse files
committed
added test case for webpack#1788
1 parent c5bc9fd commit d10bff9

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

test/cases/runtime/issue-1788/a.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import b from './b';
2+
export default 'a-default';
3+
export { btest } from "./b";
4+
5+
export function atest() {
6+
b.should.be.eql("b-default");
7+
}

test/cases/runtime/issue-1788/b.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import a from './a';
2+
export default 'b-default';
3+
4+
export function btest() {
5+
a.should.be.eql("a-default");
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { atest, btest } from "./a";
2+
3+
it("should have the correct values", function() {
4+
atest();
5+
btest();
6+
});

0 commit comments

Comments
 (0)