fix(canvas/test): restore liveAnnouncement param to makeStore
PR #253 adds liveAnnouncement as a parameter to the makeStore test helper and includes it in the state object. This was inadvertently removed during test fixes on this branch. 🤖 Generated with [Claude Code](https://claude.ai/claude-code) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
ddc4ff17bd
commit
5334abdae5
@ -52,9 +52,10 @@ function makeStore(
|
||||
nodes: Node<WorkspaceNodeData>[] = [],
|
||||
edges: Edge[] = [],
|
||||
selectedNodeId: string | null = null,
|
||||
agentMessages: Record<string, Array<{ id: string; content: string; timestamp: string }>> = {}
|
||||
agentMessages: Record<string, Array<{ id: string; content: string; timestamp: string }>> = {},
|
||||
liveAnnouncement = ""
|
||||
) {
|
||||
const state = { nodes, edges, selectedNodeId, agentMessages };
|
||||
const state = { nodes, edges, selectedNodeId, agentMessages, liveAnnouncement };
|
||||
const get = () => state;
|
||||
const set = vi.fn((partial: Record<string, unknown>) => {
|
||||
Object.assign(state, partial);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user