Skip to content

Commit 0d45f33

Browse files
committed
pretty
1 parent d1e23d0 commit 0d45f33

File tree

1 file changed

+55
-44
lines changed

1 file changed

+55
-44
lines changed

src/__tests__/internal/deployment.test.js

Lines changed: 55 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ describe('Deployment', () => {
6666
mockPool
6767
.intercept({
6868
path: `/repos/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts?name=github-pages`,
69-
method: "GET",
69+
method: 'GET'
7070
})
71-
.reply(200,
71+
.reply(
72+
200,
7273
{
7374
total_count: 1,
7475
artifacts: [{ id: 11, name: `github-pages`, size_in_bytes: 221 }]
@@ -121,9 +122,10 @@ describe('Deployment', () => {
121122
mockPool
122123
.intercept({
123124
path: `/repos/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts?name=github-pages`,
124-
method: "GET",
125+
method: 'GET'
125126
})
126-
.reply(200,
127+
.reply(
128+
200,
127129
{
128130
total_count: 1,
129131
artifacts: [{ id: 11, name: `github-pages`, size_in_bytes: 221 }]
@@ -182,12 +184,9 @@ describe('Deployment', () => {
182184
mockPool
183185
.intercept({
184186
path: `/repos/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts?name=github-pages`,
185-
method: "GET",
187+
method: 'GET'
186188
})
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' } })
191190

192191
// Create the deployment
193192
const deployment = new Deployment()
@@ -203,9 +202,10 @@ describe('Deployment', () => {
203202
mockPool
204203
.intercept({
205204
path: `/repos/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts?name=github-pages`,
206-
method: "GET",
205+
method: 'GET'
207206
})
208-
.reply(200,
207+
.reply(
208+
200,
209209
{
210210
total_count: 1,
211211
artifacts: [{ id: 11, name: `github-pages`, size_in_bytes: 221 }]
@@ -245,9 +245,10 @@ describe('Deployment', () => {
245245
mockPool
246246
.intercept({
247247
path: `/repos/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts?name=github-pages`,
248-
method: "GET",
248+
method: 'GET'
249249
})
250-
.reply(200,
250+
.reply(
251+
200,
251252
{
252253
total_count: 1,
253254
artifacts: [{ id: 11, name: `github-pages`, size_in_bytes: 221 }]
@@ -287,9 +288,10 @@ describe('Deployment', () => {
287288
mockPool
288289
.intercept({
289290
path: `/repos/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts?name=github-pages`,
290-
method: "GET",
291+
method: 'GET'
291292
})
292-
.reply(200,
293+
.reply(
294+
200,
293295
{
294296
total_count: 1,
295297
artifacts: [{ id: 11, name: `github-pages`, size_in_bytes: 221 }]
@@ -329,9 +331,10 @@ describe('Deployment', () => {
329331
mockPool
330332
.intercept({
331333
path: `/repos/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts?name=github-pages`,
332-
method: "GET",
334+
method: 'GET'
333335
})
334-
.reply(200,
336+
.reply(
337+
200,
335338
{
336339
total_count: 1,
337340
artifacts: [{ id: 11, name: `github-pages`, size_in_bytes: 221 }]
@@ -372,9 +375,10 @@ describe('Deployment', () => {
372375
mockPool
373376
.intercept({
374377
path: `/repos/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts?name=github-pages`,
375-
method: "GET",
378+
method: 'GET'
376379
})
377-
.reply(200,
380+
.reply(
381+
200,
378382
{
379383
total_count: 2,
380384
artifacts: [
@@ -405,9 +409,10 @@ describe('Deployment', () => {
405409
mockPool
406410
.intercept({
407411
path: `/repos/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts?name=github-pages`,
408-
method: "GET",
412+
method: 'GET'
409413
})
410-
.reply(200,
414+
.reply(
415+
200,
411416
{
412417
total_count: 0,
413418
artifacts: []
@@ -427,12 +432,9 @@ describe('Deployment', () => {
427432
mockPool
428433
.intercept({
429434
path: `/repos/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts?name=github-pages`,
430-
method: "GET",
435+
method: 'GET'
431436
})
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' } })
436438

437439
const deployment = new Deployment()
438440
await expect(deployment.create(fakeJwt)).rejects.toThrow(
@@ -447,9 +449,10 @@ describe('Deployment', () => {
447449
mockPool
448450
.intercept({
449451
path: `/repos/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts?name=github-pages`,
450-
method: "GET",
452+
method: 'GET'
451453
})
452-
.reply(200,
454+
.reply(
455+
200,
453456
{
454457
total_count: 1,
455458
artifacts: [{ id: 12, name: `github-pages`, size_in_bytes: artifactSize }]
@@ -502,9 +505,10 @@ describe('Deployment', () => {
502505
mockPool
503506
.intercept({
504507
path: `/repos/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts?name=github-pages`,
505-
method: "GET",
508+
method: 'GET'
506509
})
507-
.reply(200,
510+
.reply(
511+
200,
508512
{
509513
total_count: 1,
510514
artifacts: [{ id: 11, name: `github-pages`, size_in_bytes: 221 }]
@@ -573,9 +577,10 @@ describe('Deployment', () => {
573577
mockPool
574578
.intercept({
575579
path: `/repos/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts?name=github-pages`,
576-
method: "GET",
580+
method: 'GET'
577581
})
578-
.reply(200,
582+
.reply(
583+
200,
579584
{
580585
total_count: 1,
581586
artifacts: [{ id: 11, name: `github-pages`, size_in_bytes: 221 }]
@@ -641,9 +646,10 @@ describe('Deployment', () => {
641646
mockPool
642647
.intercept({
643648
path: `/repos/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts?name=github-pages`,
644-
method: "GET",
649+
method: 'GET'
645650
})
646-
.reply(200,
651+
.reply(
652+
200,
647653
{
648654
total_count: 1,
649655
artifacts: [{ id: 11, name: `github-pages`, size_in_bytes: 221 }]
@@ -693,9 +699,10 @@ describe('Deployment', () => {
693699
mockPool
694700
.intercept({
695701
path: `/repos/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts?name=github-pages`,
696-
method: "GET",
702+
method: 'GET'
697703
})
698-
.reply(200,
704+
.reply(
705+
200,
699706
{
700707
total_count: 1,
701708
artifacts: [{ id: 11, name: `github-pages`, size_in_bytes: 221 }]
@@ -791,9 +798,10 @@ describe('Deployment', () => {
791798
mockPool
792799
.intercept({
793800
path: `/repos/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts?name=github-pages`,
794-
method: "GET",
801+
method: 'GET'
795802
})
796-
.reply(200,
803+
.reply(
804+
200,
797805
{
798806
total_count: 1,
799807
artifacts: [{ id: 11, name: `github-pages`, size_in_bytes: 221 }]
@@ -878,9 +886,10 @@ describe('Deployment', () => {
878886
mockPool
879887
.intercept({
880888
path: `/repos/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts?name=github-pages`,
881-
method: "GET",
889+
method: 'GET'
882890
})
883-
.reply(200,
891+
.reply(
892+
200,
884893
{
885894
total_count: 1,
886895
artifacts: [{ id: 11, name: `github-pages`, size_in_bytes: 221 }]
@@ -968,9 +977,10 @@ describe('Deployment', () => {
968977
mockPool
969978
.intercept({
970979
path: `/repos/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts?name=github-pages`,
971-
method: "GET",
980+
method: 'GET'
972981
})
973-
.reply(200,
982+
.reply(
983+
200,
974984
{
975985
total_count: 1,
976986
artifacts: [{ id: 11, name: `github-pages`, size_in_bytes: 221 }]
@@ -1043,9 +1053,10 @@ describe('Deployment', () => {
10431053
mockPool
10441054
.intercept({
10451055
path: `/repos/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts?name=github-pages`,
1046-
method: "GET",
1056+
method: 'GET'
10471057
})
1048-
.reply(200,
1058+
.reply(
1059+
200,
10491060
{
10501061
total_count: 1,
10511062
artifacts: [{ id: 11, name: `github-pages`, size_in_bytes: 221 }]

0 commit comments

Comments
 (0)