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.
25 lines
948 B
JavaScript
25 lines
948 B
JavaScript
const assert = require("assert");
|
|
const fs = require("fs");
|
|
const path = require("path");
|
|
|
|
const root = path.resolve(__dirname, "..");
|
|
const styles = fs.readFileSync(path.join(root, "src/assets/styles/student-training.scss"), "utf8");
|
|
|
|
assert.match(
|
|
styles,
|
|
/\.student-training-shell\.product-process\s*\{[\s\S]*?gap:\s*10px\s*!important;[\s\S]*?padding:\s*10px\s+10px\s+16px\s*!important;/,
|
|
"产品开发主要流程页应压缩外层边距与双栏间隔"
|
|
);
|
|
assert.match(
|
|
styles,
|
|
/\.student-training-shell\.product-process\s*>\s*main\s*\{[\s\S]*?padding:\s*12px\s*!important;/,
|
|
"产品开发主要流程主卡应减少装饰性内边距"
|
|
);
|
|
assert.match(
|
|
styles,
|
|
/\.student-training-shell\.product-process\s+\.process-workbench\s*\{[\s\S]*?padding:\s*10px\s+12px\s*!important;/,
|
|
"产品开发主要流程工作台应为实操内容释放空间"
|
|
);
|
|
|
|
console.log("Product development process uses the compact training layout.");
|