const assert = require("node:assert/strict"); const fs = require("node:fs"); const path = require("node:path"); const root = path.resolve(__dirname, ".."); const router = fs.readFileSync(path.join(root, "src/router/index.js"), "utf8"); const analysis = fs.readFileSync(path.join(root, "src/views/analysis-of-students/analysis.vue"), "utf8"); assert.match(router, /import\s*\{\s*createWebHashHistory,\s*createRouter\s*\}/); assert.match(router, /history:\s*createWebHashHistory\(\)/); assert.match(analysis, /const hasAiAssessmentScore = \(value\) => value !== null && value !== undefined && value !== ""/); assert.match(analysis, /hasAiAssessmentScore\(task\.aiAssessmentScore\)/); console.log("AI route refresh and score presence static checks passed");