Skip to content

Commit

Permalink
test: fix missing mockReturnValue
Browse files Browse the repository at this point in the history
Signed-off-by: axel7083 <[email protected]>
  • Loading branch information
axel7083 committed Jan 30, 2024
1 parent 59e35aa commit 2c060ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/ModelPlayground.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const mocks = vi.hoisted(() => {
return () => {};
},
},
playgroundStatesSubscribeMock: vi.fn(),
playgroundStatesSubscribeMock: vi.fn().mockReturnValue([]),
playgroundStatesMock: {
subscribe: (f: (msg: any) => void) => {
f(mocks.playgroundStatesSubscribeMock());
Expand Down

0 comments on commit 2c060ab

Please sign in to comment.