You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
660 B
JavaScript
19 lines
660 B
JavaScript
|
1 month ago
|
const assert = require("node:assert/strict");
|
||
|
|
const fs = require("node:fs");
|
||
|
|
const path = require("node:path");
|
||
|
|
|
||
|
|
const page = fs.readFileSync(
|
||
|
|
path.resolve(__dirname, "../src/views/analysis-of-students/dialogue.vue"),
|
||
|
|
"utf8",
|
||
|
|
);
|
||
|
|
|
||
|
|
assert.match(page, /content="导出教案"/);
|
||
|
|
assert.match(page, /icon-class="导出"/);
|
||
|
|
assert.doesNotMatch(page, /v-copyText="item\.content"/);
|
||
|
|
assert.match(page, /function exportTeachingPlan\(item\)/);
|
||
|
|
assert.match(page, /marked\.parse\(item\.content/);
|
||
|
|
assert.match(page, /table-layout:\s*fixed/);
|
||
|
|
assert.match(page, /th, td\s*\{[^}]*word-break:\s*break-word/);
|
||
|
|
|
||
|
|
console.log("AI lesson plan export static checks passed");
|