Skip to content

Commit

Permalink
Read hTest from node_modules in HTML render of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaVerou committed May 25, 2024
1 parent cf424f2 commit 05d6a4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="UTF-8">
<title>Tests</title>
<link rel="stylesheet" href="https://htest.dev/htest.css" crossorigin />
<script src="https://htest.dev/htest.js" type="module" crossorigin></script>
<link rel="stylesheet" href="../node_modules/htest.dev/htest.css" crossorigin />
<script src="../node_modules/htest.dev/htest.js" type="module" crossorigin></script>
<script>
let params = new URLSearchParams(location.search);
let test_url = params.get('test');
Expand All @@ -21,7 +21,7 @@
}

Promise.all([
import("https://htest.dev/src/render.js").then(m => m.default),
import("../node_modules/htest.dev/src/render.js").then(m => m.default),
import(test_url).then(m => m.default),
]).then(([render, test]) => render(test));
}
Expand Down

0 comments on commit 05d6a4b

Please sign in to comment.