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.
22 lines
1018 B
JavaScript
22 lines
1018 B
JavaScript
|
4 weeks ago
|
const assert = require('assert');
|
||
|
|
const fs = require('fs');
|
||
|
|
|
||
|
|
const page = fs.readFileSync('src/views/teacherEnd/score/index.vue', 'utf8');
|
||
|
|
const home = fs.readFileSync('src/views/teacherEnd/index.vue', 'utf8');
|
||
|
|
const api = fs.readFileSync('src/api/teacher.js', 'utf8');
|
||
|
|
|
||
|
|
assert(api.includes('/api/weight/ownedTeachingClasses'));
|
||
|
|
assert(api.includes('/api/weight/selectTeachingClassWeight'));
|
||
|
|
assert(api.includes('/api/weight/updateTeachingClassWeight'));
|
||
|
|
assert(page.includes('getOwnedTeachingClasses'));
|
||
|
|
assert(page.includes('互联网产品开发基础认知'));
|
||
|
|
assert(page.includes('市场洞察与需求分析'));
|
||
|
|
assert(page.includes('产品规划与设计'));
|
||
|
|
assert(page.includes('产品开发与测试验证'));
|
||
|
|
assert(page.includes('产品上线与运营推广'));
|
||
|
|
assert(page.includes('综合实训'));
|
||
|
|
assert(page.includes('foundationWeight'));
|
||
|
|
assert(page.includes('comprehensiveTrainingWeight'));
|
||
|
|
assert(home.includes('getOwnedTeachingClasses'));
|
||
|
|
console.log('teacher score scope static checks passed');
|