@@ -62,7 +62,7 @@ describe('detect-node-support', () => {
6262 '14' : '14.3.0'
6363 }
6464 } ,
65- engines : '>=10 '
65+ engines : '>=14 '
6666 } ) ;
6767 } ) ;
6868
@@ -454,7 +454,7 @@ describe('detect-node-support', () => {
454454 '14' : '14.3.0'
455455 }
456456 } ,
457- engines : '>=10 '
457+ engines : '>=14 '
458458 } ) ;
459459 } ) ;
460460
@@ -491,7 +491,7 @@ describe('detect-node-support', () => {
491491 '14' : '14.3.0'
492492 }
493493 } ,
494- engines : '>=10 '
494+ engines : '>=14 '
495495 } ) ;
496496 } ) ;
497497
@@ -518,7 +518,7 @@ describe('detect-node-support', () => {
518518 version : '0.0.0-development' ,
519519 commit : '9cef39d21ad229dea4b10295f55b0d9a83800b23' ,
520520 timestamp : 1580673602000 ,
521- engines : '>=10 '
521+ engines : '>=14 '
522522 } ) ;
523523 } ) ;
524524
@@ -596,7 +596,7 @@ describe('detect-node-support', () => {
596596 content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
597597 } )
598598 . get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
599- . reply ( 403 , null , {
599+ . reply ( 403 , '' , {
600600 'x-ratelimit-limit' : '60' ,
601601 'x-ratelimit-remaining' : '0' ,
602602 'x-ratelimit-reset' : `${ Math . round ( Date . now ( ) / 1000 ) + 1 } `
@@ -621,7 +621,7 @@ describe('detect-node-support', () => {
621621 '14' : '14.3.0'
622622 }
623623 } ,
624- engines : '>=10 '
624+ engines : '>=14 '
625625 } ) ;
626626 } ) ;
627627
@@ -635,10 +635,11 @@ describe('detect-node-support', () => {
635635 . reply ( 200 , {
636636 content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
637637 } )
638+ // https://docs.github.com/en/rest/overview/resources-in-the-rest-api#secondary-rate-limits
638639 . get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
639- . reply ( 403 , 'Abuse detected ' ) ;
640+ . reply ( 403 , 'You have exceeded a secondary rate limit ' ) ;
640641
641- await expect ( NodeSupport . detect ( { repository : 'git+https://github.com/pkgjs/detect-node-support.git' } ) ) . to . reject ( / A b u s e d e t e c t e d / ) ;
642+ await expect ( NodeSupport . detect ( { repository : 'git+https://github.com/pkgjs/detect-node-support.git' } ) ) . to . reject ( / Y o u h a v e e x c e e d e d a s e c o n d a r y r a t e l i m i t / ) ;
642643 } ) ;
643644 } ) ;
644645
@@ -685,7 +686,7 @@ describe('detect-node-support', () => {
685686 '14' : '14.3.0'
686687 }
687688 } ,
688- engines : '>=10 '
689+ engines : '>=14 '
689690 } ) ;
690691 } ) ;
691692
@@ -716,7 +717,7 @@ describe('detect-node-support', () => {
716717 version : '0.0.0-development' ,
717718 commit : '9cef39d21ad229dea4b10295f55b0d9a83800b23' ,
718719 timestamp : 1580673602000 ,
719- engines : '>=10 '
720+ engines : '>=14 '
720721 } ) ;
721722 } ) ;
722723
@@ -814,7 +815,7 @@ describe('detect-node-support', () => {
814815 '14' : '14.3.0'
815816 }
816817 } ,
817- engines : '>=10 '
818+ engines : '>=14 '
818819 } ) ;
819820 } ) ;
820821
@@ -864,7 +865,7 @@ describe('detect-node-support', () => {
864865 '14' : '14.3.0'
865866 }
866867 } ,
867- engines : '>=10 '
868+ engines : '>=14 '
868869 } ) ;
869870 } ) ;
870871
@@ -901,7 +902,7 @@ describe('detect-node-support', () => {
901902 '14' : '14.3.0'
902903 }
903904 } ,
904- engines : '>=10 '
905+ engines : '>=14 '
905906 } ) ;
906907 } ) ;
907908
@@ -938,7 +939,7 @@ describe('detect-node-support', () => {
938939 '14' : '14.3.0'
939940 }
940941 } ,
941- engines : '>=10 '
942+ engines : '>=14 '
942943 } ) ;
943944 } ) ;
944945
@@ -979,7 +980,7 @@ describe('detect-node-support', () => {
979980 '14' : '14.3.0'
980981 }
981982 } ,
982- engines : '>=10 '
983+ engines : '>=14 '
983984 } ) ;
984985 } ) ;
985986
0 commit comments