import assert from "node:assert/strict"; import { readFileSync } from "node:fs"; import { fileURLToPath } from "node:url"; import { dirname, join } from "node:path"; const __dirname = dirname(fileURLToPath(import.meta.url)); const html = readFileSync(join(__dirname, "..", "index.html"), "utf8"); assert.equal( html.includes('进入学习页'), false, );