| 12345678910111213141516 |
- import test from 'node:test'
- import assert from 'node:assert/strict'
- import fs from 'node:fs'
- import path from 'node:path'
- const listFile = path.resolve('src/views/modules/activity/list.vue')
- test('活动列表展示全部多选活动分类并兼容旧数据', () => {
- const source = fs.readFileSync(listFile, 'utf8')
- assert.match(source, /getCategoryNames\(scope\.row\)/)
- assert.match(source, /categoryIds/)
- assert.match(source, /getCategoryNames\s*\(activity\)/)
- assert.match(source, /categoryId/)
- assert.match(source, /join\(['"]、['"]\)/)
- })
|