| 12345678910111213141516 |
- import test from 'node:test'
- import assert from 'node:assert/strict'
- import fs from 'node:fs'
- import path from 'node:path'
- import { fileURLToPath } from 'node:url'
- const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..')
- test('活动列表将状态2展示为报名已截止', () => {
- const source = fs.readFileSync(
- path.join(root, 'components/pages/nonprofitActivety/index.vue'),
- 'utf8'
- )
- assert.match(source, /2\s*:\s*['"]报名已截止['"]/)
- })
|