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:
Alexander Brown
2026-02-12 00:08:10 -08:00
parent a3200d8bfe
commit 3cabdc967b

View File

@@ -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', () => {