create-hydro-app
Version:
Create hydro apps with no build configuration.
26 lines (24 loc) • 761 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script type="module">
import { runTests } from "@web/test-runner-mocha";
import { expect } from "@esm-bundle/chai";
import fetchAndRun from "../utils/fetchAndRun.js";
runTests(() => {
describe("Link", () => {
it("returns 'Learn hydro-js'", async () => {
await fetchAndRun("../../build/link/");
expect(document.querySelector(".learn").textContent).to.equal(
"Learn hydro-js."
);
});
});
});
</script>
</head>
<body></body>
</html>