@@ -89,7 +89,7 @@ test('`findBefore`', async function (t) {
89
89
await t . test (
90
90
'should return the preceding node when without `test` (#3)' ,
91
91
async function ( ) {
92
- assert . equal ( findBefore ( paragraph , 0 ) , null )
92
+ assert . equal ( findBefore ( paragraph , 0 ) , undefined )
93
93
}
94
94
)
95
95
@@ -117,21 +117,21 @@ test('`findBefore`', async function (t) {
117
117
await t . test (
118
118
'should return `node` when given a `node` and existing (#4)' ,
119
119
async function ( ) {
120
- assert . equal ( findBefore ( paragraph , head , head ) , null )
120
+ assert . equal ( findBefore ( paragraph , head , head ) , undefined )
121
121
}
122
122
)
123
123
124
124
await t . test (
125
125
'should return `node` when given a `node` and existing (#5)' ,
126
126
async function ( ) {
127
- assert . equal ( findBefore ( paragraph , 0 , head ) , null )
127
+ assert . equal ( findBefore ( paragraph , 0 , head ) , undefined )
128
128
}
129
129
)
130
130
131
131
await t . test (
132
132
'should return `node` when given a `node` and existing (#6)' ,
133
133
async function ( ) {
134
- assert . equal ( findBefore ( paragraph , 1 , next ) , null )
134
+ assert . equal ( findBefore ( paragraph , 1 , next ) , undefined )
135
135
}
136
136
)
137
137
@@ -145,7 +145,7 @@ test('`findBefore`', async function (t) {
145
145
await t . test (
146
146
'should return a child when given a `type` and existing (#2)' ,
147
147
async function ( ) {
148
- assert . equal ( findBefore ( paragraph , 3 , 'strong' ) , null )
148
+ assert . equal ( findBefore ( paragraph , 3 , 'strong' ) , undefined )
149
149
}
150
150
)
151
151
@@ -162,7 +162,10 @@ test('`findBefore`', async function (t) {
162
162
await t . test (
163
163
'should return a child when given a `type` and existing (#4)' ,
164
164
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
+ )
166
169
}
167
170
)
168
171
@@ -176,7 +179,7 @@ test('`findBefore`', async function (t) {
176
179
await t . test (
177
180
'should return a child when given a `test` and existing (#2)' ,
178
181
async function ( ) {
179
- assert . equal ( findBefore ( paragraph , 3 , check ) , null )
182
+ assert . equal ( findBefore ( paragraph , 3 , check ) , undefined )
180
183
}
181
184
)
182
185
@@ -193,7 +196,10 @@ test('`findBefore`', async function (t) {
193
196
await t . test (
194
197
'should return a child when given a `test` and existing (#4)' ,
195
198
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
+ )
197
203
}
198
204
)
199
205
} )
0 commit comments