@@ -370,7 +370,8 @@ describe('markdown-link-check', function () {
370
370
done ( ) ;
371
371
} ) ;
372
372
} ) ;
373
- it ( 'check hash links' , function ( done ) {
373
+
374
+ it ( 'should validate hash links' , function ( done ) {
374
375
markdownLinkCheck ( fs . readFileSync ( path . join ( dirname , 'hash-links.md' ) ) . toString ( ) , { } , function ( err , result ) {
375
376
expect ( err ) . to . be ( null ) ;
376
377
expect ( result ) . to . eql ( [
@@ -379,6 +380,10 @@ describe('markdown-link-check', function () {
379
380
{ link : '#potato' , statusCode : 404 , err : null , status : 'dead' } ,
380
381
{ link : '#tomato' , statusCode : 404 , err : null , status : 'dead' } ,
381
382
{ link : '#header-with-special-char-' , statusCode : 404 , err : null , status : 'dead' } ,
383
+ { link : '#header-in-an-ordered-list' , statusCode : 200 , err : null , status : 'alive' } ,
384
+ { link : '#indented-header-in-an-ordered-list' , statusCode : 200 , err : null , status : 'alive' } ,
385
+ { link : '#header-in-an-unordered-list' , statusCode : 200 , err : null , status : 'alive' } ,
386
+ { link : '#indented-header-in-an-unordered-list' , statusCode : 200 , err : null , status : 'alive' } ,
382
387
] ) ;
383
388
done ( ) ;
384
389
} ) ;
0 commit comments