mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
fix: replace as any with as unknown as SubgraphNode in promotionList test
Amp-Thread-ID: https://ampcode.com/threads/T-019c50b9-da3d-73ef-b0ed-731dce6ba59a Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import type { SubgraphNode } from '@/lib/litegraph/src/subgraph/SubgraphNode'
|
||||
|
||||
import { getPromotionList } from './promotionList'
|
||||
|
||||
function mockSubgraphNode(proxyWidgets?: unknown) {
|
||||
return { properties: { proxyWidgets } } as any
|
||||
function mockSubgraphNode(proxyWidgets?: unknown): SubgraphNode {
|
||||
return { properties: { proxyWidgets } } as unknown as SubgraphNode
|
||||
}
|
||||
|
||||
describe('getPromotionList', () => {
|
||||
|
||||
Reference in New Issue
Block a user