Skip to content

Commit c19fd35

Browse files
committed
Fix a type error
1 parent d24a80e commit c19fd35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api/__tests__/use-state-subscription.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ describe("useSubscribeState", () => {
8787
vi.mocked(useCtrlStateQuery).mockReturnValue({
8888
data: { value: { ctrl: { state: "promised" } } },
8989
error: { value: undefined },
90-
then: (resolve) => resolve({ data: { value: { ctrl: { state: "promised" } } } }),
90+
then: (resolve: (value: any) => void) =>
91+
resolve({ data: { value: { ctrl: { state: "promised" } } } }),
9192
} as any);
9293
vi.mocked(useCtrlStateSSubscription).mockReturnValue({
9394
data: { value: undefined },

0 commit comments

Comments
 (0)