@@ -66,9 +66,10 @@ describe('Deployment', () => {
66
66
mockPool
67
67
. intercept ( {
68
68
path : `/repos/${ process . env . GITHUB_REPOSITORY } /actions/runs/${ process . env . GITHUB_RUN_ID } /artifacts?name=github-pages` ,
69
- method : " GET" ,
69
+ method : ' GET'
70
70
} )
71
- . reply ( 200 ,
71
+ . reply (
72
+ 200 ,
72
73
{
73
74
total_count : 1 ,
74
75
artifacts : [ { id : 11 , name : `github-pages` , size_in_bytes : 221 } ]
@@ -121,9 +122,10 @@ describe('Deployment', () => {
121
122
mockPool
122
123
. intercept ( {
123
124
path : `/repos/${ process . env . GITHUB_REPOSITORY } /actions/runs/${ process . env . GITHUB_RUN_ID } /artifacts?name=github-pages` ,
124
- method : " GET" ,
125
+ method : ' GET'
125
126
} )
126
- . reply ( 200 ,
127
+ . reply (
128
+ 200 ,
127
129
{
128
130
total_count : 1 ,
129
131
artifacts : [ { id : 11 , name : `github-pages` , size_in_bytes : 221 } ]
@@ -182,12 +184,9 @@ describe('Deployment', () => {
182
184
mockPool
183
185
. intercept ( {
184
186
path : `/repos/${ process . env . GITHUB_REPOSITORY } /actions/runs/${ process . env . GITHUB_RUN_ID } /artifacts?name=github-pages` ,
185
- method : " GET" ,
187
+ method : ' GET'
186
188
} )
187
- . reply ( 400 ,
188
- { message : 'Bad request' } ,
189
- { headers : { 'content-type' : 'application/json' } }
190
- )
189
+ . reply ( 400 , { message : 'Bad request' } , { headers : { 'content-type' : 'application/json' } } )
191
190
192
191
// Create the deployment
193
192
const deployment = new Deployment ( )
@@ -203,9 +202,10 @@ describe('Deployment', () => {
203
202
mockPool
204
203
. intercept ( {
205
204
path : `/repos/${ process . env . GITHUB_REPOSITORY } /actions/runs/${ process . env . GITHUB_RUN_ID } /artifacts?name=github-pages` ,
206
- method : " GET" ,
205
+ method : ' GET'
207
206
} )
208
- . reply ( 200 ,
207
+ . reply (
208
+ 200 ,
209
209
{
210
210
total_count : 1 ,
211
211
artifacts : [ { id : 11 , name : `github-pages` , size_in_bytes : 221 } ]
@@ -245,9 +245,10 @@ describe('Deployment', () => {
245
245
mockPool
246
246
. intercept ( {
247
247
path : `/repos/${ process . env . GITHUB_REPOSITORY } /actions/runs/${ process . env . GITHUB_RUN_ID } /artifacts?name=github-pages` ,
248
- method : " GET" ,
248
+ method : ' GET'
249
249
} )
250
- . reply ( 200 ,
250
+ . reply (
251
+ 200 ,
251
252
{
252
253
total_count : 1 ,
253
254
artifacts : [ { id : 11 , name : `github-pages` , size_in_bytes : 221 } ]
@@ -287,9 +288,10 @@ describe('Deployment', () => {
287
288
mockPool
288
289
. intercept ( {
289
290
path : `/repos/${ process . env . GITHUB_REPOSITORY } /actions/runs/${ process . env . GITHUB_RUN_ID } /artifacts?name=github-pages` ,
290
- method : " GET" ,
291
+ method : ' GET'
291
292
} )
292
- . reply ( 200 ,
293
+ . reply (
294
+ 200 ,
293
295
{
294
296
total_count : 1 ,
295
297
artifacts : [ { id : 11 , name : `github-pages` , size_in_bytes : 221 } ]
@@ -329,9 +331,10 @@ describe('Deployment', () => {
329
331
mockPool
330
332
. intercept ( {
331
333
path : `/repos/${ process . env . GITHUB_REPOSITORY } /actions/runs/${ process . env . GITHUB_RUN_ID } /artifacts?name=github-pages` ,
332
- method : " GET" ,
334
+ method : ' GET'
333
335
} )
334
- . reply ( 200 ,
336
+ . reply (
337
+ 200 ,
335
338
{
336
339
total_count : 1 ,
337
340
artifacts : [ { id : 11 , name : `github-pages` , size_in_bytes : 221 } ]
@@ -372,9 +375,10 @@ describe('Deployment', () => {
372
375
mockPool
373
376
. intercept ( {
374
377
path : `/repos/${ process . env . GITHUB_REPOSITORY } /actions/runs/${ process . env . GITHUB_RUN_ID } /artifacts?name=github-pages` ,
375
- method : " GET" ,
378
+ method : ' GET'
376
379
} )
377
- . reply ( 200 ,
380
+ . reply (
381
+ 200 ,
378
382
{
379
383
total_count : 2 ,
380
384
artifacts : [
@@ -405,9 +409,10 @@ describe('Deployment', () => {
405
409
mockPool
406
410
. intercept ( {
407
411
path : `/repos/${ process . env . GITHUB_REPOSITORY } /actions/runs/${ process . env . GITHUB_RUN_ID } /artifacts?name=github-pages` ,
408
- method : " GET" ,
412
+ method : ' GET'
409
413
} )
410
- . reply ( 200 ,
414
+ . reply (
415
+ 200 ,
411
416
{
412
417
total_count : 0 ,
413
418
artifacts : [ ]
@@ -427,12 +432,9 @@ describe('Deployment', () => {
427
432
mockPool
428
433
. intercept ( {
429
434
path : `/repos/${ process . env . GITHUB_REPOSITORY } /actions/runs/${ process . env . GITHUB_RUN_ID } /artifacts?name=github-pages` ,
430
- method : " GET" ,
435
+ method : ' GET'
431
436
} )
432
- . reply ( 500 ,
433
- { message : 'oh no' } ,
434
- { headers : { 'content-type' : 'application/json' } }
435
- )
437
+ . reply ( 500 , { message : 'oh no' } , { headers : { 'content-type' : 'application/json' } } )
436
438
437
439
const deployment = new Deployment ( )
438
440
await expect ( deployment . create ( fakeJwt ) ) . rejects . toThrow (
@@ -447,9 +449,10 @@ describe('Deployment', () => {
447
449
mockPool
448
450
. intercept ( {
449
451
path : `/repos/${ process . env . GITHUB_REPOSITORY } /actions/runs/${ process . env . GITHUB_RUN_ID } /artifacts?name=github-pages` ,
450
- method : " GET" ,
452
+ method : ' GET'
451
453
} )
452
- . reply ( 200 ,
454
+ . reply (
455
+ 200 ,
453
456
{
454
457
total_count : 1 ,
455
458
artifacts : [ { id : 12 , name : `github-pages` , size_in_bytes : artifactSize } ]
@@ -502,9 +505,10 @@ describe('Deployment', () => {
502
505
mockPool
503
506
. intercept ( {
504
507
path : `/repos/${ process . env . GITHUB_REPOSITORY } /actions/runs/${ process . env . GITHUB_RUN_ID } /artifacts?name=github-pages` ,
505
- method : " GET" ,
508
+ method : ' GET'
506
509
} )
507
- . reply ( 200 ,
510
+ . reply (
511
+ 200 ,
508
512
{
509
513
total_count : 1 ,
510
514
artifacts : [ { id : 11 , name : `github-pages` , size_in_bytes : 221 } ]
@@ -573,9 +577,10 @@ describe('Deployment', () => {
573
577
mockPool
574
578
. intercept ( {
575
579
path : `/repos/${ process . env . GITHUB_REPOSITORY } /actions/runs/${ process . env . GITHUB_RUN_ID } /artifacts?name=github-pages` ,
576
- method : " GET" ,
580
+ method : ' GET'
577
581
} )
578
- . reply ( 200 ,
582
+ . reply (
583
+ 200 ,
579
584
{
580
585
total_count : 1 ,
581
586
artifacts : [ { id : 11 , name : `github-pages` , size_in_bytes : 221 } ]
@@ -641,9 +646,10 @@ describe('Deployment', () => {
641
646
mockPool
642
647
. intercept ( {
643
648
path : `/repos/${ process . env . GITHUB_REPOSITORY } /actions/runs/${ process . env . GITHUB_RUN_ID } /artifacts?name=github-pages` ,
644
- method : " GET" ,
649
+ method : ' GET'
645
650
} )
646
- . reply ( 200 ,
651
+ . reply (
652
+ 200 ,
647
653
{
648
654
total_count : 1 ,
649
655
artifacts : [ { id : 11 , name : `github-pages` , size_in_bytes : 221 } ]
@@ -693,9 +699,10 @@ describe('Deployment', () => {
693
699
mockPool
694
700
. intercept ( {
695
701
path : `/repos/${ process . env . GITHUB_REPOSITORY } /actions/runs/${ process . env . GITHUB_RUN_ID } /artifacts?name=github-pages` ,
696
- method : " GET" ,
702
+ method : ' GET'
697
703
} )
698
- . reply ( 200 ,
704
+ . reply (
705
+ 200 ,
699
706
{
700
707
total_count : 1 ,
701
708
artifacts : [ { id : 11 , name : `github-pages` , size_in_bytes : 221 } ]
@@ -791,9 +798,10 @@ describe('Deployment', () => {
791
798
mockPool
792
799
. intercept ( {
793
800
path : `/repos/${ process . env . GITHUB_REPOSITORY } /actions/runs/${ process . env . GITHUB_RUN_ID } /artifacts?name=github-pages` ,
794
- method : " GET" ,
801
+ method : ' GET'
795
802
} )
796
- . reply ( 200 ,
803
+ . reply (
804
+ 200 ,
797
805
{
798
806
total_count : 1 ,
799
807
artifacts : [ { id : 11 , name : `github-pages` , size_in_bytes : 221 } ]
@@ -878,9 +886,10 @@ describe('Deployment', () => {
878
886
mockPool
879
887
. intercept ( {
880
888
path : `/repos/${ process . env . GITHUB_REPOSITORY } /actions/runs/${ process . env . GITHUB_RUN_ID } /artifacts?name=github-pages` ,
881
- method : " GET" ,
889
+ method : ' GET'
882
890
} )
883
- . reply ( 200 ,
891
+ . reply (
892
+ 200 ,
884
893
{
885
894
total_count : 1 ,
886
895
artifacts : [ { id : 11 , name : `github-pages` , size_in_bytes : 221 } ]
@@ -968,9 +977,10 @@ describe('Deployment', () => {
968
977
mockPool
969
978
. intercept ( {
970
979
path : `/repos/${ process . env . GITHUB_REPOSITORY } /actions/runs/${ process . env . GITHUB_RUN_ID } /artifacts?name=github-pages` ,
971
- method : " GET" ,
980
+ method : ' GET'
972
981
} )
973
- . reply ( 200 ,
982
+ . reply (
983
+ 200 ,
974
984
{
975
985
total_count : 1 ,
976
986
artifacts : [ { id : 11 , name : `github-pages` , size_in_bytes : 221 } ]
@@ -1043,9 +1053,10 @@ describe('Deployment', () => {
1043
1053
mockPool
1044
1054
. intercept ( {
1045
1055
path : `/repos/${ process . env . GITHUB_REPOSITORY } /actions/runs/${ process . env . GITHUB_RUN_ID } /artifacts?name=github-pages` ,
1046
- method : " GET" ,
1056
+ method : ' GET'
1047
1057
} )
1048
- . reply ( 200 ,
1058
+ . reply (
1059
+ 200 ,
1049
1060
{
1050
1061
total_count : 1 ,
1051
1062
artifacts : [ { id : 11 , name : `github-pages` , size_in_bytes : 221 } ]
0 commit comments