Skip to content

Commit 039e0b5

Browse files
committed
Update tests for changes in parse5
1 parent 716ce45 commit 039e0b5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/position.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ test('position', function (t) {
1212

1313
node = node.childNodes[0];
1414
delete node.parentNode;
15+
delete node.__location.startTag;
1516

1617
t.deepEqual(
1718
inspect(toParse5({
@@ -27,9 +28,7 @@ test('position', function (t) {
2728
}],
2829
position: {
2930
start: {line: 1, column: 1, offset: 0},
30-
/* `4`, instead of `9`, is a bug in parse5:
31-
* https://github.com/inikulin/parse5/issues/109 */
32-
end: {line: 1, column: 10, offset: 4}
31+
end: {line: 1, column: 10, offset: 9}
3332
}
3433
}), {depth: null}),
3534
inspect(node, {depth: null}),

0 commit comments

Comments
 (0)