@@ -91,7 +91,7 @@ test('findAfter', async function (t) {
9191 await t . test (
9292 'should return the following node when without `test` (#1)' ,
9393 async function ( ) {
94- assert . strictEqual ( findAfter ( paragraph , 7 ) , null )
94+ assert . strictEqual ( findAfter ( paragraph , 7 ) , undefined )
9595 }
9696 )
9797
@@ -122,21 +122,24 @@ test('findAfter', async function (t) {
122122 await t . test (
123123 'should return `node` when given a `node` and existing (#4)' ,
124124 async function ( ) {
125- assert . strictEqual ( findAfter ( paragraph , children [ 0 ] , children [ 0 ] ) , null )
125+ assert . strictEqual (
126+ findAfter ( paragraph , children [ 0 ] , children [ 0 ] ) ,
127+ undefined
128+ )
126129 }
127130 )
128131
129132 await t . test (
130133 'should return `node` when given a `node` and existing (#5)' ,
131134 async function ( ) {
132- assert . strictEqual ( findAfter ( paragraph , 0 , children [ 0 ] ) , null )
135+ assert . strictEqual ( findAfter ( paragraph , 0 , children [ 0 ] ) , undefined )
133136 }
134137 )
135138
136139 await t . test (
137140 'should return `node` when given a `node` and existing (#6)' ,
138141 async function ( ) {
139- assert . strictEqual ( findAfter ( paragraph , 1 , children [ 1 ] ) , null )
142+ assert . strictEqual ( findAfter ( paragraph , 1 , children [ 1 ] ) , undefined )
140143 }
141144 )
142145
@@ -150,7 +153,7 @@ test('findAfter', async function (t) {
150153 await t . test (
151154 'should return a child when given a `type` and existing (#2)' ,
152155 async function ( ) {
153- assert . strictEqual ( findAfter ( paragraph , 3 , 'strong' ) , null )
156+ assert . strictEqual ( findAfter ( paragraph , 3 , 'strong' ) , undefined )
154157 }
155158 )
156159
@@ -167,7 +170,7 @@ test('findAfter', async function (t) {
167170 await t . test (
168171 'should return a child when given a `type` and existing (#4)' ,
169172 async function ( ) {
170- assert . strictEqual ( findAfter ( paragraph , children [ 3 ] , 'strong' ) , null )
173+ assert . strictEqual ( findAfter ( paragraph , children [ 3 ] , 'strong' ) , undefined )
171174 }
172175 )
173176
@@ -181,7 +184,7 @@ test('findAfter', async function (t) {
181184 await t . test (
182185 'should return a child when given a `test` and existing (#2)' ,
183186 async function ( ) {
184- assert . strictEqual ( findAfter ( paragraph , 5 , check ) , null )
187+ assert . strictEqual ( findAfter ( paragraph , 5 , check ) , undefined )
185188 }
186189 )
187190
@@ -195,7 +198,7 @@ test('findAfter', async function (t) {
195198 await t . test (
196199 'should return a child when given a `test` and existing (#4)' ,
197200 async function ( ) {
198- assert . strictEqual ( findAfter ( paragraph , children [ 6 ] , check ) , null )
201+ assert . strictEqual ( findAfter ( paragraph , children [ 6 ] , check ) , undefined )
199202 }
200203 )
201204} )
0 commit comments