MCPcopy Create free account
hub / github.com/Noumena-Network/code / makeState

Function makeState

src/components/statusLine/activeLabel.test.ts:4–11  ·  view source on GitHub ↗
(overrides: Partial<Parameters<typeof getStatusLineActiveLabel>[0]> = {})

Source from the content-addressed store, hash-verified

2import { getStatusLineActiveLabel } from './activeLabel.js'
3
4function makeState(overrides: Partial<Parameters<typeof getStatusLineActiveLabel>[0]> = {}) {
5 return {
6 viewingAgentTaskId: undefined,
7 tasks: {},
8 agentNameRegistry: new Map(),
9 ...overrides,
10 }
11}
12
13describe('getStatusLineActiveLabel', () => {
14 it('uses Main for the leader view', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected