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.
26 lines
1011 B
JavaScript
26 lines
1011 B
JavaScript
const assert = require("assert");
|
|
const {
|
|
LESSON_PLAN_MODULES,
|
|
buildTeachingPlanPrompt,
|
|
} = require("../src/views/analysis-of-students/lessonPlanPrompt.cjs");
|
|
|
|
const expectedModules = [
|
|
"互联网产品开发基础认知",
|
|
"市场洞察与需求分析",
|
|
"产品规划与设计",
|
|
"产品开发与测试验证",
|
|
"产品上线与运营推广",
|
|
"综合实训",
|
|
];
|
|
|
|
assert.deepStrictEqual(LESSON_PLAN_MODULES, expectedModules, "lesson-plan module selector must expose the six current modules");
|
|
|
|
const prompt = buildTeachingPlanPrompt("市场洞察与需求分析");
|
|
assert.match(prompt, /互联网产品开发实训课程/, "prompt must identify the course");
|
|
assert.match(prompt, /市场洞察与需求分析/, "prompt must identify the selected module");
|
|
for (const section of ["教学目标", "实训任务", "实施步骤", "预期成果", "评价要点"]) {
|
|
assert.match(prompt, new RegExp(section), `prompt must require ${section}`);
|
|
}
|
|
|
|
console.log("AI training lesson plan checks passed");
|