fix(test): align version statistic threshold fixture

This commit is contained in:
jxxghp
2026-08-05 20:38:50 +08:00
parent 6a21bb55c3
commit b5ee946919
@@ -26,7 +26,7 @@ const DialogStub = defineComponent({
}) })
describe('AboutDialog version statistics', () => { 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) => { mocks.apiGet.mockImplementation((path: string) => {
if (path === 'system/env') { if (path === 'system/env') {
return Promise.resolve({ return Promise.resolve({
@@ -44,12 +44,12 @@ describe('AboutDialog version statistics', () => {
return Promise.resolve({ return Promise.resolve({
data: { data: {
backend_versions: [ backend_versions: [
{ version: 'backend-hidden', count: 1 }, { version: 'backend-hidden', count: 9 },
{ version: 'backend-visible', count: 2 }, { version: 'backend-visible', count: 10 },
], ],
frontend_versions: [ frontend_versions: [
{ version: 'frontend-hidden', count: 0 }, { version: 'frontend-hidden', count: 0 },
{ version: 'frontend-visible', count: 3 }, { version: 'frontend-visible', count: 11 },
], ],
}, },
}) })