mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-08-08 15:00:15 -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) {
|
function createMockWidget(value?: unknown) {
|
||||||
type PendingInfo = { name: string; notes: string; filePath: string; activeTab?: string } | null
|
type PendingInfo = { name: string; notes: string; filePath: string; activeTab?: string } | null
|
||||||
const widget = {
|
const widget = {
|
||||||
|
options: {} as { getValue?: () => unknown; setValue?: (v: unknown) => void },
|
||||||
serializeValue: (async () => null) as () => Promise<unknown>,
|
serializeValue: (async () => null) as () => Promise<unknown>,
|
||||||
value: (value ?? undefined) as unknown,
|
value: (value ?? undefined) as unknown,
|
||||||
onSetValue: undefined as unknown as ((v: unknown) => void),
|
onSetValue: undefined as unknown as ((v: unknown) => void),
|
||||||
|
|||||||
Reference in New Issue
Block a user