This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
import { readFileSync } from "node:fs";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { dirname, join } from "node:path";
|
||||
|
||||
const root = join(dirname(fileURLToPath(import.meta.url)), "..");
|
||||
|
||||
test("the site has a home page with a semantic navigation bar", () => {
|
||||
const html = readFileSync(join(root, "index.html"), "utf8");
|
||||
assert.match(html, /<nav/);
|
||||
assert.match(html, /class="nav-links"/);
|
||||
assert.match(html, /<a href="index\.html">Home<\/a>/);
|
||||
});
|
||||
Reference in New Issue
Block a user