| 12345678910111213141516171819 |
- const fs = require('fs')
- const path = require('path')
- const component = fs.readFileSync(
- path.join(__dirname, '../../src/views/modules/wechatUser/reportRecord.vue'),
- 'utf8'
- )
- const controller = fs.readFileSync(
- path.join(__dirname, '../../../chuangheng/chuangheng-admin/src/main/java/com/ringzle/modules/core/ReportTeamMemberController.java'),
- 'utf8'
- )
- test('PC report records include generating reports and disable unavailable actions', () => {
- expect(controller).not.toContain('params.put("state", "1")')
- expect(component).toContain('报告状态')
- expect(component).toContain('生成中')
- expect(component).toContain("scope.row.state === '0'")
- expect(component).toContain('report-pending')
- })
|