Skip to content

Commit d15b639

Browse files
author
hantatsang
committed
test: fix e2e
1 parent 1b175ed commit d15b639

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

e2e/tests/outliningSpans.js

+7-6
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ describe('OutliningSpans', () => {
1919
'`'
2020
].join('\n'));
2121

22-
assert.strictEqual(spans.length, 2);
22+
assert.strictEqual(spans.length, 3);
2323

24-
const [span1, span2] = spans;
25-
assertPosition(span1.textSpan.start, 2, 1);
26-
assertPosition(span1.textSpan.end, 3, 1);
24+
// The first span represents the root
25+
const [, span2, span3] = spans;
26+
assertPosition(span2.textSpan.start, 2, 1);
27+
assertPosition(span2.textSpan.end, 3, 1);
2728

28-
assertPosition(span2.textSpan.start, 5, 1);
29-
assertPosition(span2.textSpan.end, 6, 1);
29+
assertPosition(span3.textSpan.start, 5, 1);
30+
assertPosition(span3.textSpan.end, 6, 1);
3031
});
3132
});
3233

0 commit comments

Comments
 (0)