(
overrides: Partial<ReplSubmitState> = {},
)
| 5 | import type { ReplSubmitState } from './replSubmitState.js' |
| 6 | |
| 7 | function makeSubmitState( |
| 8 | overrides: Partial<ReplSubmitState> = {}, |
| 9 | ): ReplSubmitState { |
| 10 | return { |
| 11 | isSlashCommand: false, |
| 12 | submitsNow: true, |
| 13 | shouldAddToHistory: true, |
| 14 | shouldRestoreStashImmediately: false, |
| 15 | shouldProvideDeferredStashRestore: false, |
| 16 | shouldClearInputValue: true, |
| 17 | shouldClearPastedContents: true, |
| 18 | shouldResetInputMode: true, |
| 19 | shouldIncrementSubmitCount: true, |
| 20 | shouldClearBuffer: true, |
| 21 | shouldShowProcessingPlaceholder: true, |
| 22 | ...overrides, |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | function makePlan( |
| 27 | overrides: Partial<ReplSubmitBookkeepingPlan> = {}, |
no outgoing calls
no test coverage detected