@@ -89,7 +89,7 @@ test('`findBefore`', async function (t) {
8989 await t . test (
9090 'should return the preceding node when without `test` (#3)' ,
9191 async function ( ) {
92- assert . equal ( findBefore ( paragraph , 0 ) , null )
92+ assert . equal ( findBefore ( paragraph , 0 ) , undefined )
9393 }
9494 )
9595
@@ -117,21 +117,21 @@ test('`findBefore`', async function (t) {
117117 await t . test (
118118 'should return `node` when given a `node` and existing (#4)' ,
119119 async function ( ) {
120- assert . equal ( findBefore ( paragraph , head , head ) , null )
120+ assert . equal ( findBefore ( paragraph , head , head ) , undefined )
121121 }
122122 )
123123
124124 await t . test (
125125 'should return `node` when given a `node` and existing (#5)' ,
126126 async function ( ) {
127- assert . equal ( findBefore ( paragraph , 0 , head ) , null )
127+ assert . equal ( findBefore ( paragraph , 0 , head ) , undefined )
128128 }
129129 )
130130
131131 await t . test (
132132 'should return `node` when given a `node` and existing (#6)' ,
133133 async function ( ) {
134- assert . equal ( findBefore ( paragraph , 1 , next ) , null )
134+ assert . equal ( findBefore ( paragraph , 1 , next ) , undefined )
135135 }
136136 )
137137
@@ -145,7 +145,7 @@ test('`findBefore`', async function (t) {
145145 await t . test (
146146 'should return a child when given a `type` and existing (#2)' ,
147147 async function ( ) {
148- assert . equal ( findBefore ( paragraph , 3 , 'strong' ) , null )
148+ assert . equal ( findBefore ( paragraph , 3 , 'strong' ) , undefined )
149149 }
150150 )
151151
@@ -162,7 +162,10 @@ test('`findBefore`', async function (t) {
162162 await t . test (
163163 'should return a child when given a `type` and existing (#4)' ,
164164 async function ( ) {
165- assert . equal ( findBefore ( paragraph , paragraph . children [ 3 ] , 'strong' ) , null )
165+ assert . equal (
166+ findBefore ( paragraph , paragraph . children [ 3 ] , 'strong' ) ,
167+ undefined
168+ )
166169 }
167170 )
168171
@@ -176,7 +179,7 @@ test('`findBefore`', async function (t) {
176179 await t . test (
177180 'should return a child when given a `test` and existing (#2)' ,
178181 async function ( ) {
179- assert . equal ( findBefore ( paragraph , 3 , check ) , null )
182+ assert . equal ( findBefore ( paragraph , 3 , check ) , undefined )
180183 }
181184 )
182185
@@ -193,7 +196,10 @@ test('`findBefore`', async function (t) {
193196 await t . test (
194197 'should return a child when given a `test` and existing (#4)' ,
195198 async function ( ) {
196- assert . equal ( findBefore ( paragraph , paragraph . children [ 3 ] , check ) , null )
199+ assert . equal (
200+ findBefore ( paragraph , paragraph . children [ 3 ] , check ) ,
201+ undefined
202+ )
197203 }
198204 )
199205} )
0 commit comments