@@ -91,7 +91,7 @@ test('findAfter', async function (t) {
91
91
await t . test (
92
92
'should return the following node when without `test` (#1)' ,
93
93
async function ( ) {
94
- assert . strictEqual ( findAfter ( paragraph , 7 ) , null )
94
+ assert . strictEqual ( findAfter ( paragraph , 7 ) , undefined )
95
95
}
96
96
)
97
97
@@ -122,21 +122,24 @@ test('findAfter', async function (t) {
122
122
await t . test (
123
123
'should return `node` when given a `node` and existing (#4)' ,
124
124
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
+ )
126
129
}
127
130
)
128
131
129
132
await t . test (
130
133
'should return `node` when given a `node` and existing (#5)' ,
131
134
async function ( ) {
132
- assert . strictEqual ( findAfter ( paragraph , 0 , children [ 0 ] ) , null )
135
+ assert . strictEqual ( findAfter ( paragraph , 0 , children [ 0 ] ) , undefined )
133
136
}
134
137
)
135
138
136
139
await t . test (
137
140
'should return `node` when given a `node` and existing (#6)' ,
138
141
async function ( ) {
139
- assert . strictEqual ( findAfter ( paragraph , 1 , children [ 1 ] ) , null )
142
+ assert . strictEqual ( findAfter ( paragraph , 1 , children [ 1 ] ) , undefined )
140
143
}
141
144
)
142
145
@@ -150,7 +153,7 @@ test('findAfter', async function (t) {
150
153
await t . test (
151
154
'should return a child when given a `type` and existing (#2)' ,
152
155
async function ( ) {
153
- assert . strictEqual ( findAfter ( paragraph , 3 , 'strong' ) , null )
156
+ assert . strictEqual ( findAfter ( paragraph , 3 , 'strong' ) , undefined )
154
157
}
155
158
)
156
159
@@ -167,7 +170,7 @@ test('findAfter', async function (t) {
167
170
await t . test (
168
171
'should return a child when given a `type` and existing (#4)' ,
169
172
async function ( ) {
170
- assert . strictEqual ( findAfter ( paragraph , children [ 3 ] , 'strong' ) , null )
173
+ assert . strictEqual ( findAfter ( paragraph , children [ 3 ] , 'strong' ) , undefined )
171
174
}
172
175
)
173
176
@@ -181,7 +184,7 @@ test('findAfter', async function (t) {
181
184
await t . test (
182
185
'should return a child when given a `test` and existing (#2)' ,
183
186
async function ( ) {
184
- assert . strictEqual ( findAfter ( paragraph , 5 , check ) , null )
187
+ assert . strictEqual ( findAfter ( paragraph , 5 , check ) , undefined )
185
188
}
186
189
)
187
190
@@ -195,7 +198,7 @@ test('findAfter', async function (t) {
195
198
await t . test (
196
199
'should return a child when given a `test` and existing (#4)' ,
197
200
async function ( ) {
198
- assert . strictEqual ( findAfter ( paragraph , children [ 6 ] , check ) , null )
201
+ assert . strictEqual ( findAfter ( paragraph , children [ 6 ] , check ) , undefined )
199
202
}
200
203
)
201
204
} )
0 commit comments