From b5ee9469197977087f62a1dabf4b4a99b8ae128e Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 5 Aug 2026 20:38:50 +0800 Subject: [PATCH] fix(test): align version statistic threshold fixture --- .../dialog/__tests__/AboutDialogVersionStatistic.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/dialog/__tests__/AboutDialogVersionStatistic.spec.ts b/src/components/dialog/__tests__/AboutDialogVersionStatistic.spec.ts index 05ad5568..508def88 100644 --- a/src/components/dialog/__tests__/AboutDialogVersionStatistic.spec.ts +++ b/src/components/dialog/__tests__/AboutDialogVersionStatistic.spec.ts @@ -26,7 +26,7 @@ const DialogStub = defineComponent({ }) describe('AboutDialog version statistics', () => { - it('hides backend and frontend versions with fewer than two installations', async () => { + it('hides backend and frontend versions with fewer than ten installations', async () => { mocks.apiGet.mockImplementation((path: string) => { if (path === 'system/env') { return Promise.resolve({ @@ -44,12 +44,12 @@ describe('AboutDialog version statistics', () => { return Promise.resolve({ data: { backend_versions: [ - { version: 'backend-hidden', count: 1 }, - { version: 'backend-visible', count: 2 }, + { version: 'backend-hidden', count: 9 }, + { version: 'backend-visible', count: 10 }, ], frontend_versions: [ { version: 'frontend-hidden', count: 0 }, - { version: 'frontend-visible', count: 3 }, + { version: 'frontend-visible', count: 11 }, ], }, })