2 Commits 2f7c16fe6c ... b851037822

Tác giả SHA1 Thông báo Ngày
  Developer b851037822 fix: show signup closed status in activity list 1 tuần trước cách đây
  Developer 774274ff97 chore: ignore local worktrees 1 tuần trước cách đây

+ 1 - 0
.gitignore

@@ -1,2 +1,3 @@
 node_modules
 unpackage
+.worktrees/

+ 1 - 1
components/pages/nonprofitActivety/index.vue

@@ -53,7 +53,7 @@
         '-1': '已取消',
 		0:'未开始',
 		1:'报名中',
-		2:'进行中',
+		2:'报名已截止',
 		3:'已结束'
 	})
 

+ 16 - 0
tests/activity-list-state.test.js

@@ -0,0 +1,16 @@
+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*['"]报名已截止['"]/)
+})