()
| 16 | }); |
| 17 | |
| 18 | async function runTest() { |
| 19 | const graph = (await getCursorlessApi()).graph!; |
| 20 | |
| 21 | const editor = await openNewEditor(""); |
| 22 | |
| 23 | editor.selections = [new vscode.Selection(0, 0, 0, 0)]; |
| 24 | |
| 25 | await graph.hatTokenMap.addDecorations(); |
| 26 | |
| 27 | await vscode.commands.executeCommand( |
| 28 | "cursorless.command", |
| 29 | "whatever", |
| 30 | "wrapWithPairedDelimiter", |
| 31 | [{ type: "primitive", selectionType: "line", mark: { type: "cursor" } }], |
| 32 | "(", |
| 33 | ")" |
| 34 | ); |
| 35 | |
| 36 | assert.deepStrictEqual(editor.document.getText(), "()"); |
| 37 | } |
nothing calls this directly
no test coverage detected