MCPcopy Create free account
hub / github.com/cursorless-dev/cursorless / runTest

Function runTest

src/test/suite/backwardCompatibility.test.ts:18–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16});
17
18async 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}

Callers

nothing calls this directly

Calls 3

getCursorlessApiFunction · 0.90
openNewEditorFunction · 0.90
addDecorationsMethod · 0.45

Tested by

no test coverage detected