Skip to content

Commit

Permalink
Add more cases
Browse files Browse the repository at this point in the history
  • Loading branch information
eight04 committed Jan 30, 2020
1 parent 4ae1b1f commit 5c6d622
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 4 deletions.
3 changes: 3 additions & 0 deletions test/cases/import-for-in-scope/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import {bar} from "foo";
console.log(bar);
for (const bar in Object);
5 changes: 5 additions & 0 deletions test/cases/import-for-in-scope/output.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(function () {

console.log(foo.bar);
for (const bar in Object);
})();
3 changes: 3 additions & 0 deletions test/cases/import-for-of-scope/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import {bar} from "foo";
console.log(bar);
for (const bar of []);
5 changes: 5 additions & 0 deletions test/cases/import-for-of-scope/output.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(function () {

console.log(foo.bar);
for (const bar of []);
})();
3 changes: 1 addition & 2 deletions test/cases/import-for-scope/input.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {bar} from "foo";
console.log(bar);
for (const bar of []);
for (const bar in Object);
for (let bar = 0; bar < 1; bar++);
3 changes: 1 addition & 2 deletions test/cases/import-for-scope/output.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
(function () {

console.log(foo.bar);
for (const bar of []);
for (const bar in Object);
for (let bar = 0; bar < 1; bar++);
})();

0 comments on commit 5c6d622

Please sign in to comment.