| 12345678910111213141516171819202122 |
- const assert = require('assert');
- const fs = require('fs');
- const source = fs.readFileSync('pagesHome/components/report/generateList.vue', 'utf8');
- assert.match(source, /isReportGenerating\(item\)/);
- assert.match(source, /showGeneratingReminder/);
- assert.match(source, /guardReportOperation\(item\)/);
- assert.match(source, /@click="showReportSelector\(item\)"/);
- assert.match(source, /v-if="reportSelectorShow"/);
- assert.match(source, /背景报告需配合团队版评估数据生成/);
- assert.match(source, /教练报告需要配合团队版评估数据生成/);
- assert.match(source, /v-if="reportReminderShow"/);
- assert.match(source, /<view class="kr-title">温馨提示<\/view>/);
- assert.match(source, /<view class="kr-btn" @click="reportReminderShow=false">确定<\/view>/);
- assert.match(source, /selectReportArtifact\('background'\)/);
- assert.match(source, /selectReportArtifact\('professional'\)/);
- assert.match(source, /selectReportArtifact\('public'\)/);
- assert.match(source, />查看报告<\/view>/);
- console.log('reportButtonAvailability.test.js: all assertions passed');
|