feat: deliver first finance preview with setup wizard
Release / release (push) Failing after 18s

This commit is contained in:
Qiufeng
2026-08-17 14:08:40 +08:00
parent 47403fd337
commit c8b0151769
558 changed files with 140774 additions and 3 deletions
+33
View File
@@ -0,0 +1,33 @@
import { describe, expect, it } from 'vitest';
import type { WorkbenchView } from '../src/api/workbench';
import { normalizeWorkbench } from '../src/api/workbench';
import { parseWorkbenchTarget } from '../src/pages/workbench/workbench-navigation';
describe('workbench R3 contracts', () => {
it('normalizes every optional workbench collection to an array', () => {
expect(
normalizeWorkbench({
title: '资料管理工作台',
archiveItems: null,
activities: undefined,
} as unknown as Partial<WorkbenchView>),
).toMatchObject({
title: '资料管理工作台',
metrics: [],
todos: [],
projects: [],
issues: [],
funds: [],
archiveItems: [],
activities: [],
});
});
it('keeps download drilldowns within the archive file allowlist', () => {
expect(parseWorkbenchTarget('/archives/files')).toEqual({ path: '/archives/files' });
expect(parseWorkbenchTarget('/archives/files?token=SECRET')).toEqual({
path: '/archives/files',
});
});
});