Skip to content

Commit

Permalink
demonstrates error with #1221
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbmeyer committed Jul 2, 2017
1 parent 115a8f0 commit 245739b
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/clone-within-dynamic-imports/first-test.js
@@ -0,0 +1,2 @@
var clone = require("steal-clone");
clone({})
2 changes: 2 additions & 0 deletions test/clone-within-dynamic-imports/first.js
@@ -0,0 +1,2 @@
console.log("running first");
module.exports = {name: "first"};
8 changes: 8 additions & 0 deletions test/clone-within-dynamic-imports/second-runs-tests.js
@@ -0,0 +1,8 @@
var clone = require("steal-clone");
var second = require("./second");
console.log("running second-test");
clone({})
.import('./second')
.then(function(mod) {
console.log("got second again", mod, second);
});
1 change: 1 addition & 0 deletions test/clone-within-dynamic-imports/second-test.js
@@ -0,0 +1 @@
require("./second-runs-tests");
2 changes: 2 additions & 0 deletions test/clone-within-dynamic-imports/second.js
@@ -0,0 +1,2 @@
console.log("running second");
module.exports = {name: "second"};
5 changes: 5 additions & 0 deletions test/clone-within-dynamic-imports/test.js
@@ -0,0 +1,5 @@
var loader = require("@loader");


loader.import("steal/test/clone-within-dynamic-imports/first-test");
loader.import("steal/test/clone-within-dynamic-imports/second-test");
36 changes: 36 additions & 0 deletions test/clone-within-dynamic-imports/within-dynamic-imports.html
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>clone tests</title>
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script>
var steal = {
paths: {
"steal-qunit": "node_modules/steal-qunit/steal-qunit.js"
},
map: {
"qunitjs": "node_modules/qunitjs"
},
meta: {
"node_modules/qunitjs/qunit/qunit": {
"format": "global",
"exports": "QUnit"
}
},
ext: {
"css": "node_modules/steal-css/css.js"
}
}
</script>
<script
src="../../steal.js"
main="steal/test/clone-within-dynamic-imports/test"
config-main="../../package.json!npm"
>
</script>
</body>
</html>

0 comments on commit 245739b

Please sign in to comment.