diff --git a/apps/frontend/package.json b/apps/frontend/package.json index 41e4985..ebb9b13 100644 --- a/apps/frontend/package.json +++ b/apps/frontend/package.json @@ -7,7 +7,7 @@ "dev": "vite", "build": "vue-tsc -b && vite build", "preview": "vite preview", - "test": "node --test --experimental-strip-types src/app/theme.test.ts src/components/templates/template-config.test.ts src/utils/format.test.ts src/views/dashboard-license.test.ts", + "test": "node --test --experimental-strip-types src/app/theme.test.ts src/components/templates/template-config.test.ts src/views/dashboard-license.test.ts", "typecheck": "vue-tsc -b", "lint": "eslint . --fix", "lint:check": "eslint .", diff --git a/apps/frontend/src/utils/format.test.ts b/apps/frontend/src/utils/format.test.ts deleted file mode 100644 index 6b39f69..0000000 --- a/apps/frontend/src/utils/format.test.ts +++ /dev/null @@ -1,9 +0,0 @@ -import assert from 'node:assert/strict' -import test from 'node:test' -import { statusLabel, statusTone } from './format.ts' - -test('formats token_expired status for check-in records', () => { - assert.equal(statusLabel('token_expired'), '凭证过期') - assert.equal(statusTone('token_expired'), 'danger') - assert.equal(statusLabel('token-expired'), 'token-expired') -})