Function
exitInsertMode
(result: {
current: {
handleInput: (input: { sequence: string; name: string }) => void;
};
})
Source from the content-addressed store, hash-verified
| 147 | ); |
| 148 | |
| 149 | const exitInsertMode = (result: { |
| 150 | current: { |
| 151 | handleInput: (input: { sequence: string; name: string }) => void; |
| 152 | }; |
| 153 | }) => { |
| 154 | act(() => { |
| 155 | result.current.handleInput({ sequence: '\u001b', name: 'escape' }); |
| 156 | }); |
| 157 | }; |
| 158 | |
| 159 | beforeEach(() => { |
| 160 | vi.clearAllMocks(); |
Tested by
no test coverage detected