mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-08-06 14:10:13 -03:00
fix(test): add missing options mock in LoraInfoWidget test
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user