From 2612a912ef9e038d7becbd0d6c0381f340ae31fd Mon Sep 17 00:00:00 2001 From: LoveChengke Date: Sun, 18 Oct 2026 12:31:18 +0800 Subject: [PATCH] =?UTF-8?q?chore(release):=20=E9=87=8D=E6=89=93=E5=8C=85?= =?UTF-8?q?=E5=B9=B6=E6=8F=90=E4=BA=A4=201.4.0=20=E4=BA=A4=E4=BB=98?= =?UTF-8?q?=E7=89=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/server/scripts/verify-v14.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/server/scripts/verify-v14.ts b/packages/server/scripts/verify-v14.ts index 49dffd5..c2581ff 100644 --- a/packages/server/scripts/verify-v14.ts +++ b/packages/server/scripts/verify-v14.ts @@ -12,7 +12,12 @@ import { exportSnapshot } from '../src/lib/snapshot.js'; import { createAutostartController } from '../src/modules/system/autostart.js'; import { getMaxTermWeeks } from '../src/lib/term.js'; import { setSetting, SETTING_KEYS } from '../src/lib/settings.js'; -import { normalizeIslandLayouts, defaultIslandLayouts, buildAutoTermWeeks } from '@classhelper/shared'; +import { + CLASSISLAND_ISLAND_METRICS, + normalizeIslandLayouts, + defaultIslandLayouts, + buildAutoTermWeeks, +} from '@classhelper/shared'; if (!process.env.DATABASE_URL?.includes('v14-verification')) throw new Error('只能对专用临时验证数据库运行'); let count = 0; function check(name: string, fn: () => void) { @@ -351,8 +356,8 @@ try { { id: 'x', rows: [{ nodes: [], main: true }], scale: 999, color: 'url(https://example.com)' }, ], }); - assert.equal(invalid.schemes[0]!.scale, 3); - assert.equal(invalid.schemes[0]!.color, '#202024'); + assert.equal(invalid.schemes[0]!.scale, CLASSISLAND_ISLAND_METRICS.scaleMax); + assert.equal(invalid.schemes[0]!.color, defaultIslandLayouts().schemes[0]!.color); }); const legacy = await request(