Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Feb 26, 2020
1 parent be787d0 commit fe4854a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions cli/tests/dynamic_circular_imports/a.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "./b.js";
2 changes: 2 additions & 0 deletions cli/tests/dynamic_circular_imports/b.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import "./c.js";
import "./a.js";
1 change: 1 addition & 0 deletions cli/tests/dynamic_circular_imports/c.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "./d.js";
1 change: 1 addition & 0 deletions cli/tests/dynamic_circular_imports/d.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// pass
2 changes: 2 additions & 0 deletions cli/tests/dynamic_circular_imports/entry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import("./b.js");
import("./a.js");
4 changes: 4 additions & 0 deletions cli/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,10 @@ itest!(fix_js_imports {
output: "fix_js_imports.ts.out",
});

itest!(dynamic_circular_imports {
args: "run --allow-read dynamic_circular_imports/entry.js",
});

#[test]
fn cafile_fetch() {
use deno::http_cache::url_to_filename;
Expand Down

0 comments on commit fe4854a

Please sign in to comment.