fix(test): add missing options mock in LoraInfoWidget test

This commit is contained in:
Will Miao
2026-07-18 22:14:03 +08:00
parent 2f94a9773e
commit 74a7d12ca4

View File

@@ -30,6 +30,7 @@ function createMockToast() {
function createMockWidget(value?: unknown) {
type PendingInfo = { name: string; notes: string; filePath: string; activeTab?: string } | null
const widget = {
options: {} as { getValue?: () => unknown; setValue?: (v: unknown) => void },
serializeValue: (async () => null) as () => Promise<unknown>,
value: (value ?? undefined) as unknown,
onSetValue: undefined as unknown as ((v: unknown) => void),