@@ -24,7 +24,7 @@ describe('Live tests', () => {
2424 this . timeout ( timeoutTime ) ;
2525 setTimeout ( ( ) => {
2626 done ( ) ;
27- } , 1000 ) ;
27+ } , 100 ) ;
2828 } ) ;
2929
3030 it . skip ( 'should handle error response' , function ( done ) {
@@ -396,23 +396,18 @@ describe('Live tests', () => {
396396 } ) ;
397397 } ) ;
398398
399- // Not parsing...
400- it . skip ( 'should return references in correct order' , function ( ) {
399+ it ( 'should return references in correct order' , function ( ) {
401400 this . timeout ( timeoutTime ) ;
402401 return wiki ( )
403402 . page ( 'Elon Musk' )
404403 . then ( page => page . references ( ) )
405404 . then ( refs => {
406405 refs [ 0 ] . should . equal (
407- 'https://www.forbes.com/sites/trulia/2013/11/01/billionaire-tesla-ceo-elon-musk-buys-home/ '
406+ 'https://www.independent.co.uk/life-style/elon-musk-son-grimes-childcare-interview-a9638321.html '
408407 ) ;
409- refs [ 1 ] . should . equal (
410- 'https://web.archive.org/web/20150207033543/http:// www.bloomberg .com/news/videos/b/6e27fcba-309d-494e-b87d-c73fb8bb1750 '
408+ refs [ 3 ] . should . equal (
409+ 'https://www.fastcompany .com/1367866/tesla-lawsuit-drama-ends-five-company-founders-emerge '
411410 ) ;
412- refs [ 2 ] . should . equal (
413- 'https://www.bloomberg.com/news/videos/b/6e27fcba-309d-494e-b87d-c73fb8bb1750'
414- ) ;
415- refs [ 3 ] . should . equal ( 'https://www.forbes.com/profile/elon-musk/' ) ;
416411 } ) ;
417412 } ) ;
418413
@@ -437,8 +432,7 @@ describe('Live tests', () => {
437432 } ) ;
438433 } ) ;
439434
440- // TODO: new html parsing is NOT working
441- it . skip ( 'should parse external references' , function ( ) {
435+ it ( 'should parse external references' , function ( ) {
442436 this . timeout ( timeoutTime ) ;
443437 return wiki ( )
444438 . page ( 'Batman' )
@@ -447,7 +441,7 @@ describe('Live tests', () => {
447441 refs . should . containEql (
448442 'http://www.behindthevoiceactors.com/characters/Batman/Batman/'
449443 ) ;
450- refs . length . should . equal ( 140 ) ;
444+ refs . length . should . equal ( 143 ) ;
451445 } ) ;
452446 } ) ;
453447
0 commit comments