diff --git a/src/views/student/index.vue b/src/views/student/index.vue index 66f632a..ec9c353 100644 --- a/src/views/student/index.vue +++ b/src/views/student/index.vue @@ -1,692 +1,350 @@ - + + diff --git a/tests/student-home-new-modules.static.test.cjs b/tests/student-home-new-modules.static.test.cjs new file mode 100644 index 0000000..553c3c1 --- /dev/null +++ b/tests/student-home-new-modules.static.test.cjs @@ -0,0 +1,17 @@ +const assert = require('assert'); +const fs = require('fs'); +const path = require('path'); + +const root = path.resolve(__dirname, '..'); +const page = fs.readFileSync(path.join(root, 'src/views/student/index.vue'), 'utf8'); + +assert(/getCurrentExperimentReport/.test(page)); +assert(/participatingModules/.test(page)); +assert(/completedTaskCount/.test(page)); +assert(/totalTaskCount/.test(page)); +assert(/moduleName/.test(page)); +assert(!/getStuWeightScore\(/.test(page)); +assert(!/getRouters\(/.test(page)); +assert(!/市场需求挖掘|产品投放测试|供应渠道管理|产品评估与考核/.test(page)); + +console.log('student home new module static checks passed');