Skip to content

Commit 3397085

Browse files
Update test
1 parent e1f2128 commit 3397085

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/cursorless-org-docs/src/docs/components/flattenHighlights.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ const tests: Test[] = [
8181

8282
suite("flatten highlights", () => {
8383
tests.forEach((t) => {
84-
const highlights = t.scopes.flatMap((s) => {
85-
const result: Highlight[] = [];
86-
if (s.domain) {
87-
result.push(createHighlight(s.domain));
88-
}
89-
result.push(...s.targets.map((t) => createHighlight(t.content)));
90-
return result;
91-
});
9284
test(t.name, () => {
85+
const highlights = t.scopes.flatMap((s) => {
86+
const result: Highlight[] = [];
87+
if (s.domain) {
88+
result.push(createHighlight(s.domain));
89+
}
90+
result.push(...s.targets.map((t) => createHighlight(t.content)));
91+
return result;
92+
});
9393
const actual = flattenHighlights(highlights);
9494
assert.equal(actual.length, t.expected.length);
9595
for (let i = 0; i < actual.length; i++) {

0 commit comments

Comments
 (0)