Skip to content

Commit af500a9

Browse files
committed
Add test for maxSearchSize
1 parent a59f646 commit af500a9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,19 @@ test('hastUtilExcerpt', (t) => {
2222
'should copy to an excerpt comment'
2323
)
2424

25+
t.deepEqual(
26+
excerpt(
27+
h('div', [
28+
h('p', 'Lorem ipsum dolor sit amet.'),
29+
u('comment', 'more'),
30+
h('p', 'Consectetur adipisicing elit.')
31+
]),
32+
{maxSearchSize: 24}
33+
),
34+
undefined,
35+
'should support `maxSearchSize`'
36+
)
37+
2538
t.deepEqual(
2639
excerpt(
2740
h('div', [

0 commit comments

Comments
 (0)