| 123456789101112131415 |
- import test from 'node:test'
- import assert from 'node:assert/strict'
- import fs from 'node:fs'
- import path from 'node:path'
- const detailFile = path.resolve('src/views/modules/activity/detail.vue')
- test('活动详情页展示全部多选活动分类并兼容旧数据', () => {
- const source = fs.readFileSync(detailFile, 'utf8')
- assert.match(source, /getCategoryNames\(basicForm\)/)
- assert.match(source, /categoryIds/)
- assert.match(source, /categoryId/)
- assert.match(source, /join\(['"]、['"]\)/)
- })
|