@@ -431,6 +431,8 @@ describe('detect-node-support', () => {
431431 . reply ( 200 , {
432432 content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
433433 } )
434+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
435+ . reply ( 404 )
434436 . get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
435437 . reply ( 200 , {
436438 content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -468,6 +470,8 @@ describe('detect-node-support', () => {
468470 . reply ( 200 , {
469471 content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
470472 } )
473+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
474+ . reply ( 404 )
471475 . get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
472476 . reply ( 200 , {
473477 content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -505,6 +509,8 @@ describe('detect-node-support', () => {
505509 . reply ( 200 , {
506510 content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
507511 } )
512+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
513+ . reply ( 404 )
508514 . get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
509515 . reply ( 404 ) ;
510516
@@ -532,6 +538,8 @@ describe('detect-node-support', () => {
532538 . reply ( 200 , {
533539 content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
534540 } )
541+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
542+ . reply ( 404 )
535543 . get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
536544 . reply ( 500 , 'Simulated server error' ) ;
537545
@@ -546,6 +554,8 @@ describe('detect-node-support', () => {
546554 Nock ( 'https://api.github.com' )
547555 . get ( '/repos/pkgjs/detect-node-support/contents/package.json' )
548556 . reply ( 404 )
557+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
558+ . reply ( 404 )
549559 . get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
550560 . reply ( 200 , {
551561 content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -560,6 +570,8 @@ describe('detect-node-support', () => {
560570 Nock ( 'https://api.github.com' )
561571 . get ( '/repos/pkgjs/detect-node-support/contents/package.json' )
562572 . reply ( 500 )
573+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
574+ . reply ( 404 )
563575 . get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
564576 . reply ( 200 , {
565577 content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -601,6 +613,8 @@ describe('detect-node-support', () => {
601613 'x-ratelimit-remaining' : '0' ,
602614 'x-ratelimit-reset' : `${ Math . round ( Date . now ( ) / 1000 ) + 1 } `
603615 } )
616+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
617+ . reply ( 404 )
604618 . get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
605619 . reply ( 200 , {
606620 content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -635,6 +649,8 @@ describe('detect-node-support', () => {
635649 . reply ( 200 , {
636650 content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
637651 } )
652+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
653+ . reply ( 404 )
638654 . get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
639655 . reply ( 403 , 'Abuse detected' ) ;
640656
@@ -658,6 +674,8 @@ describe('detect-node-support', () => {
658674 . reply ( 200 , {
659675 content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
660676 } )
677+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
678+ . reply ( 404 )
661679 . get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
662680 . reply ( 200 , {
663681 content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -699,6 +717,8 @@ describe('detect-node-support', () => {
699717 . reply ( 200 , {
700718 content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
701719 } )
720+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
721+ . reply ( 404 )
702722 . get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
703723 . reply ( 404 ) ;
704724
@@ -784,6 +804,8 @@ describe('detect-node-support', () => {
784804 . reply ( 200 , {
785805 content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
786806 } )
807+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
808+ . reply ( 404 )
787809 . get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
788810 . reply ( 200 , {
789811 content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -828,6 +850,8 @@ describe('detect-node-support', () => {
828850 . reply ( 200 , {
829851 content : Buffer . from ( JSON . stringify ( { name : 'something-else' } ) ) . toString ( 'base64' )
830852 } )
853+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
854+ . reply ( 404 )
831855 . get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
832856 . reply ( 200 , {
833857 content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -878,6 +902,8 @@ describe('detect-node-support', () => {
878902 . reply ( 200 , {
879903 content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
880904 } )
905+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
906+ . reply ( 404 )
881907 . get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
882908 . reply ( 200 , {
883909 content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -915,6 +941,8 @@ describe('detect-node-support', () => {
915941 . reply ( 200 , {
916942 content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
917943 } )
944+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
945+ . reply ( 404 )
918946 . get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
919947 . reply ( 200 , {
920948 content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -952,6 +980,8 @@ describe('detect-node-support', () => {
952980 . reply ( 200 , {
953981 content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
954982 } )
983+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
984+ . reply ( 404 )
955985 . get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
956986 . reply ( 200 , {
957987 content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -993,6 +1023,8 @@ describe('detect-node-support', () => {
9931023 . reply ( 200 , {
9941024 content : Fs . readFileSync ( Path . join ( __dirname , 'fixtures' , 'hapi-package.json' ) ) . toString ( 'base64' )
9951025 } )
1026+ . get ( '/repos/hapijs/hapi/contents/.github%2Fworkflows' )
1027+ . reply ( 404 )
9961028 . get ( '/repos/hapijs/hapi/contents/.travis.yml' )
9971029 . reply ( 200 , {
9981030 content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -1045,34 +1077,47 @@ describe('detect-node-support', () => {
10451077 . reply ( 200 , Fs . readFileSync ( Path . join ( __dirname , 'fixtures' , 'packuments' , 'rimraf.json' ) ) ) ;
10461078
10471079 Nock ( 'https://api.github.com' )
1080+
10481081 . get ( '/repos/watson/is-ci/contents/package.json' )
10491082 . reply ( 200 , {
10501083 content : Buffer . from ( JSON . stringify ( { name : 'is-ci' , version : '2.0.0' } ) ) . toString ( 'base64' )
10511084 } )
1085+ . get ( '/repos/watson/is-ci/contents/.github%2Fworkflows' )
1086+ . reply ( 404 )
10521087 . get ( '/repos/watson/is-ci/contents/.travis.yml' )
10531088 . reply ( 200 , {
10541089 content : Fs . readFileSync ( Path . join ( __dirname , 'fixtures' , 'travis-ymls' , 'testing-single-version.yml' ) ) . toString ( 'base64' )
10551090 } )
1091+
10561092 . get ( '/repos/watson/ci-info/contents/package.json' )
10571093 . reply ( 200 , {
10581094 content : Buffer . from ( JSON . stringify ( { name : 'ci-info' , version : '2.0.0' } ) ) . toString ( 'base64' )
10591095 } )
1096+ . get ( '/repos/watson/ci-info/contents/.github%2Fworkflows' )
1097+ . reply ( 404 )
10601098 . get ( '/repos/watson/ci-info/contents/.travis.yml' )
10611099 . reply ( 200 , {
10621100 content : Fs . readFileSync ( Path . join ( __dirname , 'fixtures' , 'travis-ymls' , 'testing-single-version.yml' ) ) . toString ( 'base64' )
10631101 } )
1102+
10641103 . get ( '/repos/visionmedia/debug/contents/package.json' )
10651104 . reply ( 200 , {
10661105 content : Buffer . from ( JSON . stringify ( { name : 'debug' , version : '4.1.1' } ) ) . toString ( 'base64' )
10671106 } )
1107+ . get ( '/repos/visionmedia/debug/contents/.github%2Fworkflows' )
1108+ . reply ( 404 )
10681109 . get ( '/repos/visionmedia/debug/contents/.travis.yml' )
10691110 . reply ( 404 )
1111+
10701112 . get ( '/repos/zeit/ms/contents/package.json' )
10711113 . reply ( 200 , {
10721114 content : Buffer . from ( JSON . stringify ( { name : 'ms' , version : '2.1.2' } ) ) . toString ( 'base64' )
10731115 } )
1116+ . get ( '/repos/zeit/ms/contents/.github%2Fworkflows' )
1117+ . reply ( 404 )
10741118 . get ( '/repos/zeit/ms/contents/.travis.yml' )
10751119 . reply ( 404 )
1120+
10761121 . get ( '/repos/isaacs/rimraf/contents/package.json' )
10771122 . reply ( 404 ) ;
10781123 } ) ;
0 commit comments