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.
14 lines
761 B
JavaScript
14 lines
761 B
JavaScript
const assert = require('node:assert/strict');
|
|
const fs = require('node:fs');
|
|
const path = require('node:path');
|
|
const test = require('node:test');
|
|
|
|
const source = fs.readFileSync(path.resolve(__dirname, '../src/views/demand/business-feasibility.vue'), 'utf8');
|
|
|
|
test('商业可行性第一步按七个原型区块拆分成本、定价与风险表格', () => {
|
|
assert.ok(source.includes('<h3>成本结构分析</h3>'), '成本结构应为独立区块');
|
|
assert.ok(source.includes('<h3>定价与毛利分析</h3>'), '定价与毛利应为独立区块');
|
|
assert.ok(source.includes('<span>07</span>'), '风险识别应作为第七个区块');
|
|
assert.ok(source.includes('readonly'), '单位总成本、单位毛利和毛利率应为只读计算结果');
|
|
});
|