|
@@ -9,6 +9,7 @@ test('活动详情页展示全部多选活动分类并兼容旧数据', () => {
|
|
|
const source = fs.readFileSync(detailFile, 'utf8')
|
|
const source = fs.readFileSync(detailFile, 'utf8')
|
|
|
|
|
|
|
|
assert.match(source, /getCategoryNames\(basicForm\)/)
|
|
assert.match(source, /getCategoryNames\(basicForm\)/)
|
|
|
|
|
+ assert.match(source, /basicForm:\s*\{[\s\S]*categoryIds:\s*['"]['"]/)
|
|
|
assert.match(source, /categoryIds/)
|
|
assert.match(source, /categoryIds/)
|
|
|
assert.match(source, /categoryId/)
|
|
assert.match(source, /categoryId/)
|
|
|
assert.match(source, /join\(['"]、['"]\)/)
|
|
assert.match(source, /join\(['"]、['"]\)/)
|