@@ -52,9 +52,9 @@ test.describe("historyApiFallback option", () => {
52
52
waitUntil : "networkidle0" ,
53
53
} ) ;
54
54
55
- expect (
56
- response . headers ( ) [ "content-type" ] ,
57
- ) . toMatchSnapshotWithArray ( "response headers" ) ;
55
+ expect ( response . headers ( ) [ "content-type" ] ) . toMatchSnapshotWithArray (
56
+ " response headers" ,
57
+ ) ;
58
58
59
59
expect ( response . status ( ) ) . toEqual ( 200 ) ;
60
60
@@ -110,17 +110,15 @@ test.describe("historyApiFallback option", () => {
110
110
waitUntil : "networkidle0" ,
111
111
} ) ;
112
112
113
- expect (
114
- response . headers ( ) [ "content-type" ] )
115
- . toMatchSnapshotWithArray ( ) ;
113
+ expect ( response . headers ( ) [ "content-type" ] ) . toMatchSnapshotWithArray ( ) ;
116
114
117
115
expect ( response . status ( ) ) . toEqual ( 200 ) ;
118
116
119
117
await expect ( page ) . toHaveScreenshot ( ) ;
120
118
121
119
expect (
122
- consoleMessages . map ( ( message ) => message . text ( ) ) )
123
- . toMatchSnapshotWithArray ( "console messages" ) ;
120
+ consoleMessages . map ( ( message ) => message . text ( ) ) ,
121
+ ) . toMatchSnapshotWithArray ( "console messages" ) ;
124
122
125
123
expect ( pageErrors ) . toMatchSnapshotWithArray ( "page errors" ) ;
126
124
} ) ;
@@ -172,17 +170,17 @@ test.describe("historyApiFallback option", () => {
172
170
waitUntil : "networkidle0" ,
173
171
} ) ;
174
172
175
- expect (
176
- response . headers ( ) [ "content- type" ] )
177
- . toMatchSnapshotWithArray ( "content type" ) ;
173
+ expect ( response . headers ( ) [ "content-type" ] ) . toMatchSnapshotWithArray (
174
+ "content type" ,
175
+ ) ;
178
176
179
177
expect ( response . status ( ) ) . toEqual ( 200 ) ;
180
178
181
179
await expect ( page ) . toHaveScreenshot ( ) ;
182
180
183
181
expect (
184
- consoleMessages . map ( ( message ) => message . text ( ) ) )
185
- . toMatchSnapshotWithArray ( "console messages" ) ;
182
+ consoleMessages . map ( ( message ) => message . text ( ) ) ,
183
+ ) . toMatchSnapshotWithArray ( "console messages" ) ;
186
184
187
185
expect ( pageErrors ) . toMatchSnapshotWithArray ( "page errors" ) ;
188
186
} ) ;
@@ -206,17 +204,17 @@ test.describe("historyApiFallback option", () => {
206
204
} ,
207
205
) ;
208
206
209
- expect (
210
- response . headers ( ) [ "content- type" ] )
211
- . toMatchSnapshotWithArray ( "content type" ) ;
207
+ expect ( response . headers ( ) [ "content-type" ] ) . toMatchSnapshotWithArray (
208
+ "content type" ,
209
+ ) ;
212
210
213
211
expect ( response . status ( ) ) . toEqual ( 200 ) ;
214
212
215
213
await expect ( page ) . toHaveScreenshot ( ) ;
216
214
217
215
expect (
218
- consoleMessages . map ( ( message ) => message . text ( ) ) )
219
- . toMatchSnapshotWithArray ( "console messages" ) ;
216
+ consoleMessages . map ( ( message ) => message . text ( ) ) ,
217
+ ) . toMatchSnapshotWithArray ( "console messages" ) ;
220
218
221
219
expect ( pageErrors ) . toMatchSnapshotWithArray ( "page errors" ) ;
222
220
} ) ;
@@ -267,17 +265,17 @@ test.describe("historyApiFallback option", () => {
267
265
waitUntil : "networkidle0" ,
268
266
} ) ;
269
267
270
- expect (
271
- response . headers ( ) [ "content- type" ] )
272
- . toMatchSnapshotWithArray ( "content type" ) ;
268
+ expect ( response . headers ( ) [ "content-type" ] ) . toMatchSnapshotWithArray (
269
+ "content type" ,
270
+ ) ;
273
271
274
272
expect ( response . status ( ) ) . toEqual ( 200 ) ;
275
273
276
274
await expect ( page ) . toHaveScreenshot ( ) ;
277
275
278
276
expect (
279
- consoleMessages . map ( ( message ) => message . text ( ) ) )
280
- . toMatchSnapshotWithArray ( "console messages" ) ;
277
+ consoleMessages . map ( ( message ) => message . text ( ) ) ,
278
+ ) . toMatchSnapshotWithArray ( "console messages" ) ;
281
279
282
280
expect ( pageErrors ) . toMatchSnapshotWithArray ( "page errors" ) ;
283
281
} ) ;
@@ -338,17 +336,17 @@ test.describe("historyApiFallback option", () => {
338
336
waitUntil : "networkidle0" ,
339
337
} ) ;
340
338
341
- expect (
342
- response . headers ( ) [ "content- type" ] )
343
- . toMatchSnapshotWithArray ( "content type" ) ;
339
+ expect ( response . headers ( ) [ "content-type" ] ) . toMatchSnapshotWithArray (
340
+ "content type" ,
341
+ ) ;
344
342
345
343
expect ( response . status ( ) ) . toEqual ( 200 ) ;
346
344
347
345
await expect ( page ) . toHaveScreenshot ( ) ;
348
346
349
347
expect (
350
- consoleMessages . map ( ( message ) => message . text ( ) ) )
351
- . toMatchSnapshotWithArray ( "console messages" ) ;
348
+ consoleMessages . map ( ( message ) => message . text ( ) ) ,
349
+ ) . toMatchSnapshotWithArray ( "console messages" ) ;
352
350
353
351
expect ( pageErrors ) . toMatchSnapshotWithArray ( "page errors" ) ;
354
352
} ) ;
@@ -368,17 +366,17 @@ test.describe("historyApiFallback option", () => {
368
366
waitUntil : "networkidle0" ,
369
367
} ) ;
370
368
371
- expect (
372
- response . headers ( ) [ "content- type" ] )
373
- . toMatchSnapshotWithArray ( "content type" ) ;
369
+ expect ( response . headers ( ) [ "content-type" ] ) . toMatchSnapshotWithArray (
370
+ "content type" ,
371
+ ) ;
374
372
375
373
expect ( response . status ( ) ) . toEqual ( 200 ) ;
376
374
377
375
await expect ( page ) . toHaveScreenshot ( ) ;
378
376
379
377
expect (
380
- consoleMessages . map ( ( message ) => message . text ( ) ) )
381
- . toMatchSnapshotWithArray ( "console messages" ) ;
378
+ consoleMessages . map ( ( message ) => message . text ( ) ) ,
379
+ ) . toMatchSnapshotWithArray ( "console messages" ) ;
382
380
383
381
expect ( pageErrors ) . toMatchSnapshotWithArray ( "page errors" ) ;
384
382
} ) ;
@@ -398,17 +396,17 @@ test.describe("historyApiFallback option", () => {
398
396
waitUntil : "networkidle0" ,
399
397
} ) ;
400
398
401
- expect (
402
- response . headers ( ) [ "content- type" ] )
403
- . toMatchSnapshotWithArray ( "content type" ) ;
399
+ expect ( response . headers ( ) [ "content-type" ] ) . toMatchSnapshotWithArray (
400
+ "content type" ,
401
+ ) ;
404
402
405
403
expect ( response . status ( ) ) . toEqual ( 200 ) ;
406
404
407
405
await expect ( page ) . toHaveScreenshot ( ) ;
408
406
409
407
expect (
410
- consoleMessages . map ( ( message ) => message . text ( ) ) )
411
- . toMatchSnapshotWithArray ( "console messages" ) ;
408
+ consoleMessages . map ( ( message ) => message . text ( ) ) ,
409
+ ) . toMatchSnapshotWithArray ( "console messages" ) ;
412
410
413
411
expect ( pageErrors ) . toMatchSnapshotWithArray ( "page errors" ) ;
414
412
} ) ;
@@ -461,15 +459,16 @@ test.describe("historyApiFallback option", () => {
461
459
waitUntil : "networkidle0" ,
462
460
} ) ;
463
461
464
- expect (
465
- response . headers ( ) [ "content- type" ] )
466
- . toMatchSnapshotWithArray ( "content type" ) ;
462
+ expect ( response . headers ( ) [ "content-type" ] ) . toMatchSnapshotWithArray (
463
+ "content type" ,
464
+ ) ;
467
465
468
466
expect ( response . status ( ) ) . toEqual ( 200 ) ;
469
467
470
468
await expect ( page ) . toHaveScreenshot ( ) ;
471
469
472
- sinon . assert . calledWith ( consoleSpy ,
470
+ sinon . assert . calledWith (
471
+ consoleSpy ,
473
472
"Rewriting" ,
474
473
"GET" ,
475
474
"/foo" ,
@@ -478,8 +477,8 @@ test.describe("historyApiFallback option", () => {
478
477
) ;
479
478
480
479
expect (
481
- consoleMessages . map ( ( message ) => message . text ( ) ) )
482
- . toMatchSnapshotWithArray ( "console messages" ) ;
480
+ consoleMessages . map ( ( message ) => message . text ( ) ) ,
481
+ ) . toMatchSnapshotWithArray ( "console messages" ) ;
483
482
484
483
expect ( pageErrors ) . toMatchSnapshotWithArray ( "page errors" ) ;
485
484
} ) ;
@@ -532,15 +531,16 @@ test.describe("historyApiFallback option", () => {
532
531
waitUntil : "networkidle0" ,
533
532
} ) ;
534
533
535
- expect (
536
- response . headers ( ) [ "content- type" ] )
537
- . toMatchSnapshotWithArray ( "content type" ) ;
534
+ expect ( response . headers ( ) [ "content-type" ] ) . toMatchSnapshotWithArray (
535
+ "content type" ,
536
+ ) ;
538
537
539
538
expect ( response . status ( ) ) . toEqual ( 200 ) ;
540
539
541
540
await expect ( page ) . toHaveScreenshot ( ) ;
542
541
543
- sinon . assert . calledWith ( consoleSpy ,
542
+ sinon . assert . calledWith (
543
+ consoleSpy ,
544
544
"Rewriting" ,
545
545
"GET" ,
546
546
"/foo" ,
@@ -549,8 +549,8 @@ test.describe("historyApiFallback option", () => {
549
549
) ;
550
550
551
551
expect (
552
- consoleMessages . map ( ( message ) => message . text ( ) ) )
553
- . toMatchSnapshotWithArray ( "console messages" ) ;
552
+ consoleMessages . map ( ( message ) => message . text ( ) ) ,
553
+ ) . toMatchSnapshotWithArray ( "console messages" ) ;
554
554
555
555
expect ( pageErrors ) . toMatchSnapshotWithArray ( "page errors" ) ;
556
556
} ) ;
@@ -600,17 +600,17 @@ test.describe("historyApiFallback option", () => {
600
600
waitUntil : "networkidle0" ,
601
601
} ) ;
602
602
603
- expect (
604
- response . headers ( ) [ "content- type" ] )
605
- . toMatchSnapshotWithArray ( "content type" ) ;
603
+ expect ( response . headers ( ) [ "content-type" ] ) . toMatchSnapshotWithArray (
604
+ "content type" ,
605
+ ) ;
606
606
607
607
expect ( response . status ( ) ) . toEqual ( 200 ) ;
608
608
609
609
await expect ( page ) . toHaveScreenshot ( ) ;
610
610
611
611
expect (
612
- consoleMessages . map ( ( message ) => message . text ( ) ) )
613
- . toMatchSnapshotWithArray ( "console messages" ) ;
612
+ consoleMessages . map ( ( message ) => message . text ( ) ) ,
613
+ ) . toMatchSnapshotWithArray ( "console messages" ) ;
614
614
615
615
expect ( pageErrors ) . toMatchSnapshotWithArray ( "page errors" ) ;
616
616
} ) ;
0 commit comments