File tree 3 files changed +9
-5
lines changed
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,12 @@ function fromXml(doc) {
30
30
31
31
return stack [ 0 ]
32
32
33
- function onerror ( err ) {
34
- var index = err . message . indexOf ( '\nLine' )
33
+ function onerror ( error ) {
34
+ var index = error . message . indexOf ( '\nLine' )
35
35
/* istanbul ignore next
36
36
* - The substring should always be included, but this guards against
37
37
* changes in newer sax versions */
38
- fail ( index === - 1 ? err . message : err . message . slice ( 0 , index ) , 'sax' )
38
+ fail ( index === - 1 ? error . message : error . message . slice ( 0 , index ) , 'sax' )
39
39
}
40
40
41
41
function onsgmldeclaration ( ) {
Original file line number Diff line number Diff line change 43
43
"remark-cli" : " ^9.0.0" ,
44
44
"remark-preset-wooorm" : " ^8.0.0" ,
45
45
"tape" : " ^5.0.0" ,
46
- "xo" : " ^0.34 .0"
46
+ "xo" : " ^0.38 .0"
47
47
},
48
48
"scripts" : {
49
49
"format" : " remark . -qfo && prettier . -w --loglevel warn && xo --fix" ,
Original file line number Diff line number Diff line change @@ -208,8 +208,12 @@ test('xast-util-from-xml', function (t) {
208
208
209
209
test ( 'fixtures' , function ( t ) {
210
210
var base = join ( 'test' , 'fixtures' )
211
+ var files = fs . readdirSync ( base ) . filter ( negate ( hidden ) )
212
+ var index = - 1
211
213
212
- fs . readdirSync ( base ) . filter ( negate ( hidden ) ) . forEach ( each )
214
+ while ( ++ index < files . length ) {
215
+ each ( files [ index ] )
216
+ }
213
217
214
218
t . end ( )
215
219
You can’t perform that action at this time.
0 commit comments