const assert=require('assert'),fs=require('fs'),path=require('path'); const root=path.resolve(__dirname,'..'); const api=fs.readFileSync(path.join(root,'src/api/index.js'),'utf8'); const page=fs.readFileSync(path.join(root,'src/views/test-report/index.vue'),'utf8'); assert(/getCurrentExperimentReport/.test(api)); assert(/experiment-report\/current/.test(api)); assert(/getCurrentExperimentReport/.test(page)); assert(/completedTaskCount/.test(page)&&/aiAssessmentScore/.test(page)); assert(!/getStuWeightScore|getUserVisitCount|getStudyTime|getUserRank|getStuModuleDetail/.test(page)); console.log('student experiment report static checks passed');