@@ -431,6 +431,8 @@ describe('detect-node-support', () => {
431
431
. reply ( 200 , {
432
432
content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
433
433
} )
434
+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
435
+ . reply ( 404 )
434
436
. get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
435
437
. reply ( 200 , {
436
438
content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -468,6 +470,8 @@ describe('detect-node-support', () => {
468
470
. reply ( 200 , {
469
471
content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
470
472
} )
473
+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
474
+ . reply ( 404 )
471
475
. get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
472
476
. reply ( 200 , {
473
477
content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -505,6 +509,8 @@ describe('detect-node-support', () => {
505
509
. reply ( 200 , {
506
510
content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
507
511
} )
512
+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
513
+ . reply ( 404 )
508
514
. get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
509
515
. reply ( 404 ) ;
510
516
@@ -532,6 +538,8 @@ describe('detect-node-support', () => {
532
538
. reply ( 200 , {
533
539
content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
534
540
} )
541
+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
542
+ . reply ( 404 )
535
543
. get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
536
544
. reply ( 500 , 'Simulated server error' ) ;
537
545
@@ -546,6 +554,8 @@ describe('detect-node-support', () => {
546
554
Nock ( 'https://api.github.com' )
547
555
. get ( '/repos/pkgjs/detect-node-support/contents/package.json' )
548
556
. reply ( 404 )
557
+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
558
+ . reply ( 404 )
549
559
. get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
550
560
. reply ( 200 , {
551
561
content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -560,6 +570,8 @@ describe('detect-node-support', () => {
560
570
Nock ( 'https://api.github.com' )
561
571
. get ( '/repos/pkgjs/detect-node-support/contents/package.json' )
562
572
. reply ( 500 )
573
+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
574
+ . reply ( 404 )
563
575
. get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
564
576
. reply ( 200 , {
565
577
content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -601,6 +613,8 @@ describe('detect-node-support', () => {
601
613
'x-ratelimit-remaining' : '0' ,
602
614
'x-ratelimit-reset' : `${ Math . round ( Date . now ( ) / 1000 ) + 1 } `
603
615
} )
616
+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
617
+ . reply ( 404 )
604
618
. get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
605
619
. reply ( 200 , {
606
620
content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -635,6 +649,8 @@ describe('detect-node-support', () => {
635
649
. reply ( 200 , {
636
650
content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
637
651
} )
652
+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
653
+ . reply ( 404 )
638
654
. get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
639
655
. reply ( 403 , 'Abuse detected' ) ;
640
656
@@ -658,6 +674,8 @@ describe('detect-node-support', () => {
658
674
. reply ( 200 , {
659
675
content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
660
676
} )
677
+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
678
+ . reply ( 404 )
661
679
. get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
662
680
. reply ( 200 , {
663
681
content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -699,6 +717,8 @@ describe('detect-node-support', () => {
699
717
. reply ( 200 , {
700
718
content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
701
719
} )
720
+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
721
+ . reply ( 404 )
702
722
. get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
703
723
. reply ( 404 ) ;
704
724
@@ -784,6 +804,8 @@ describe('detect-node-support', () => {
784
804
. reply ( 200 , {
785
805
content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
786
806
} )
807
+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
808
+ . reply ( 404 )
787
809
. get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
788
810
. reply ( 200 , {
789
811
content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -828,6 +850,8 @@ describe('detect-node-support', () => {
828
850
. reply ( 200 , {
829
851
content : Buffer . from ( JSON . stringify ( { name : 'something-else' } ) ) . toString ( 'base64' )
830
852
} )
853
+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
854
+ . reply ( 404 )
831
855
. get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
832
856
. reply ( 200 , {
833
857
content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -878,6 +902,8 @@ describe('detect-node-support', () => {
878
902
. reply ( 200 , {
879
903
content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
880
904
} )
905
+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
906
+ . reply ( 404 )
881
907
. get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
882
908
. reply ( 200 , {
883
909
content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -915,6 +941,8 @@ describe('detect-node-support', () => {
915
941
. reply ( 200 , {
916
942
content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
917
943
} )
944
+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
945
+ . reply ( 404 )
918
946
. get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
919
947
. reply ( 200 , {
920
948
content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -952,6 +980,8 @@ describe('detect-node-support', () => {
952
980
. reply ( 200 , {
953
981
content : Fs . readFileSync ( Path . join ( __dirname , '..' , 'package.json' ) ) . toString ( 'base64' )
954
982
} )
983
+ . get ( '/repos/pkgjs/detect-node-support/contents/.github%2Fworkflows' )
984
+ . reply ( 404 )
955
985
. get ( '/repos/pkgjs/detect-node-support/contents/.travis.yml' )
956
986
. reply ( 200 , {
957
987
content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -993,6 +1023,8 @@ describe('detect-node-support', () => {
993
1023
. reply ( 200 , {
994
1024
content : Fs . readFileSync ( Path . join ( __dirname , 'fixtures' , 'hapi-package.json' ) ) . toString ( 'base64' )
995
1025
} )
1026
+ . get ( '/repos/hapijs/hapi/contents/.github%2Fworkflows' )
1027
+ . reply ( 404 )
996
1028
. get ( '/repos/hapijs/hapi/contents/.travis.yml' )
997
1029
. reply ( 200 , {
998
1030
content : Fs . readFileSync ( Path . join ( __dirname , '..' , '.travis.yml' ) ) . toString ( 'base64' )
@@ -1045,34 +1077,47 @@ describe('detect-node-support', () => {
1045
1077
. reply ( 200 , Fs . readFileSync ( Path . join ( __dirname , 'fixtures' , 'packuments' , 'rimraf.json' ) ) ) ;
1046
1078
1047
1079
Nock ( 'https://api.github.com' )
1080
+
1048
1081
. get ( '/repos/watson/is-ci/contents/package.json' )
1049
1082
. reply ( 200 , {
1050
1083
content : Buffer . from ( JSON . stringify ( { name : 'is-ci' , version : '2.0.0' } ) ) . toString ( 'base64' )
1051
1084
} )
1085
+ . get ( '/repos/watson/is-ci/contents/.github%2Fworkflows' )
1086
+ . reply ( 404 )
1052
1087
. get ( '/repos/watson/is-ci/contents/.travis.yml' )
1053
1088
. reply ( 200 , {
1054
1089
content : Fs . readFileSync ( Path . join ( __dirname , 'fixtures' , 'travis-ymls' , 'testing-single-version.yml' ) ) . toString ( 'base64' )
1055
1090
} )
1091
+
1056
1092
. get ( '/repos/watson/ci-info/contents/package.json' )
1057
1093
. reply ( 200 , {
1058
1094
content : Buffer . from ( JSON . stringify ( { name : 'ci-info' , version : '2.0.0' } ) ) . toString ( 'base64' )
1059
1095
} )
1096
+ . get ( '/repos/watson/ci-info/contents/.github%2Fworkflows' )
1097
+ . reply ( 404 )
1060
1098
. get ( '/repos/watson/ci-info/contents/.travis.yml' )
1061
1099
. reply ( 200 , {
1062
1100
content : Fs . readFileSync ( Path . join ( __dirname , 'fixtures' , 'travis-ymls' , 'testing-single-version.yml' ) ) . toString ( 'base64' )
1063
1101
} )
1102
+
1064
1103
. get ( '/repos/visionmedia/debug/contents/package.json' )
1065
1104
. reply ( 200 , {
1066
1105
content : Buffer . from ( JSON . stringify ( { name : 'debug' , version : '4.1.1' } ) ) . toString ( 'base64' )
1067
1106
} )
1107
+ . get ( '/repos/visionmedia/debug/contents/.github%2Fworkflows' )
1108
+ . reply ( 404 )
1068
1109
. get ( '/repos/visionmedia/debug/contents/.travis.yml' )
1069
1110
. reply ( 404 )
1111
+
1070
1112
. get ( '/repos/zeit/ms/contents/package.json' )
1071
1113
. reply ( 200 , {
1072
1114
content : Buffer . from ( JSON . stringify ( { name : 'ms' , version : '2.1.2' } ) ) . toString ( 'base64' )
1073
1115
} )
1116
+ . get ( '/repos/zeit/ms/contents/.github%2Fworkflows' )
1117
+ . reply ( 404 )
1074
1118
. get ( '/repos/zeit/ms/contents/.travis.yml' )
1075
1119
. reply ( 404 )
1120
+
1076
1121
. get ( '/repos/isaacs/rimraf/contents/package.json' )
1077
1122
. reply ( 404 ) ;
1078
1123
} ) ;
0 commit comments