mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
style: fix formatting in ComboWidget tests
Amp-Thread-ID: https://ampcode.com/threads/T-019c7a94-a709-7773-b282-458d6bcb9e41
This commit is contained in:
@@ -1064,7 +1064,8 @@ describe('ComboWidget', () => {
|
||||
value: '',
|
||||
options: {
|
||||
values: [],
|
||||
placeholder: 'No models found in ComfyUI/models/checkpoints folder...'
|
||||
placeholder:
|
||||
'No models found in ComfyUI/models/checkpoints folder...'
|
||||
}
|
||||
}),
|
||||
node
|
||||
@@ -1082,7 +1083,8 @@ describe('ComboWidget', () => {
|
||||
value: 'model.safetensors',
|
||||
options: {
|
||||
values: ['model.safetensors', 'other.safetensors'],
|
||||
placeholder: 'No models found in ComfyUI/models/checkpoints folder...'
|
||||
placeholder:
|
||||
'No models found in ComfyUI/models/checkpoints folder...'
|
||||
}
|
||||
}),
|
||||
node
|
||||
|
||||
@@ -163,10 +163,11 @@ describe('useComboWidget', () => {
|
||||
expect(mockNode.addWidget).toHaveBeenCalledWith(
|
||||
'combo',
|
||||
'inputName',
|
||||
undefined,
|
||||
'',
|
||||
expect.any(Function),
|
||||
expect.objectContaining({
|
||||
values: []
|
||||
values: [],
|
||||
placeholder: undefined
|
||||
})
|
||||
)
|
||||
expect(widget).toBe(mockWidget)
|
||||
|
||||
Reference in New Issue
Block a user