reportButtonLabels.test.js 462 B

123456789101112131415
  1. const assert = require('node:assert/strict')
  2. const fs = require('node:fs')
  3. const path = require('node:path')
  4. const source = fs.readFileSync(
  5. path.join(__dirname, '../pagesHome/components/report/generateList.vue'),
  6. 'utf8'
  7. )
  8. assert.match(source, />教练报告<\/view>/)
  9. assert.match(source, />团队报告<\/view>/)
  10. assert.doesNotMatch(source, />专业版<\/view>/)
  11. assert.doesNotMatch(source, />公开版<\/view>/)
  12. console.log('report button labels: PASS')