Skip to content

Commit a8a37a1

Browse files
committed
Fix tests for changes in @types/unist
1 parent 939ef57 commit a8a37a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ test('unist-util-size', function (t) {
1616

1717
t.equal(size(tree), 11, 'complete tree')
1818
t.equal(size(tree.children[0]), 7, 'parent node with mixed children')
19+
// @ts-expect-error: fine.
1920
t.equal(size(tree.children[0].children[1]), 1, 'parent of text')
21+
// @ts-expect-error: fine.
2022
t.equal(size(tree.children[0].children[0]), 0, 'text node')
2123

2224
t.equal(size(tree, 'element'), 5, 'test')

0 commit comments

Comments
 (0)