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

Function makePlan

src/session/replSubmitBookkeepingDispatch.test.ts:26–45  ·  view source on GitHub ↗
(
  overrides: Partial<ReplSubmitBookkeepingPlan> = {},
)

Source from the content-addressed store, hash-verified

24}
25
26function makePlan(
27 overrides: Partial<ReplSubmitBookkeepingPlan> = {},
28): ReplSubmitBookkeepingPlan {
29 return {
30 historyEntry: {
31 display: '/ship',
32 pastedContents: {},
33 },
34 inputValueUpdate: {
35 kind: 'clear',
36 value: '',
37 cursorOffset: 0,
38 },
39 pastedContentsUpdate: {
40 kind: 'clear',
41 value: {},
42 },
43 ...overrides,
44 }
45}
46
47describe('dispatchReplSubmitBookkeeping', () => {
48 test('preserves the existing history, clear, placeholder, and attribution ordering', () => {

Calls

no outgoing calls

Tested by

no test coverage detected