Skip to content

Commit a92ffff

Browse files
committed
fix: formatting
1 parent a323229 commit a92ffff

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

src/test/editor.tests.js

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -420,15 +420,22 @@ export async function runCodeMirrorTests(writeOutput) {
420420

421421
runner.test("Indent guides render as indentation spans", async (test) => {
422422
const doc = "function x() {\n if (true) {\n return 1;\n }\n}";
423-
await withEditor(test, async (view) => {
424-
const guideLine = view.dom.querySelector(".cm-indent-guides");
425-
const legacyWidget = view.dom.querySelector(".cm-indent-guides-wrapper");
426-
test.assert(guideLine != null, "Indent guide span should exist");
427-
test.assert(
428-
legacyWidget == null,
429-
"Indent guides should not create widget wrapper DOM",
430-
);
431-
}, doc, [indentGuides()]);
423+
await withEditor(
424+
test,
425+
async (view) => {
426+
const guideLine = view.dom.querySelector(".cm-indent-guides");
427+
const legacyWidget = view.dom.querySelector(
428+
".cm-indent-guides-wrapper",
429+
);
430+
test.assert(guideLine != null, "Indent guide span should exist");
431+
test.assert(
432+
legacyWidget == null,
433+
"Indent guides should not create widget wrapper DOM",
434+
);
435+
},
436+
doc,
437+
[indentGuides()],
438+
);
432439
});
433440

434441
runner.test("Focus and blur", async (test) => {

0 commit comments

Comments
 (0)