(
overrides: Partial<ReplSubmitBookkeepingPlan> = {},
)
| 24 | } |
| 25 | |
| 26 | function 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 | |
| 47 | describe('dispatchReplSubmitBookkeeping', () => { |
| 48 | test('preserves the existing history, clear, placeholder, and attribution ordering', () => { |
no outgoing calls
no test coverage detected