/
server.test.js.snap.webpack5
686 lines (592 loc) · 29.9 KB
/
server.test.js.snap.webpack5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`server option as object allow to pass more options should handle GET request to index route (/): console messages 1`] = `Array []`;
exports[`server option as object allow to pass more options should handle GET request to index route (/): https options 1`] = `
Object {
"ca": "<Buffer>",
"cert": "<Buffer>",
"key": "<Buffer>",
"minVersion": "TLSv1.1",
"passphrase": "webpack-dev-server",
"pfx": "<Buffer>",
"requestCert": false,
}
`;
exports[`server option as object allow to pass more options should handle GET request to index route (/): page errors 1`] = `Array []`;
exports[`server option as object allow to pass more options should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as object allow to pass more options should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
exports[`server option as object ca, pfx, key and cert are array of buffers should handle GET request to index route (/): console messages 1`] = `Array []`;
exports[`server option as object ca, pfx, key and cert are array of buffers should handle GET request to index route (/): https options 1`] = `
Object {
"ca": Array [
"<Buffer>",
],
"cert": Array [
"<Buffer>",
],
"key": Array [
"<Buffer>",
],
"passphrase": "webpack-dev-server",
"pfx": Array [
"<Buffer>",
],
"requestCert": false,
}
`;
exports[`server option as object ca, pfx, key and cert are array of buffers should handle GET request to index route (/): page errors 1`] = `Array []`;
exports[`server option as object ca, pfx, key and cert are array of buffers should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as object ca, pfx, key and cert are array of buffers should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
exports[`server option as object ca, pfx, key and cert are array of paths to files should handle GET request to index route (/): console messages 1`] = `Array []`;
exports[`server option as object ca, pfx, key and cert are array of paths to files should handle GET request to index route (/): https options 1`] = `
Object {
"ca": Array [
"<Buffer>",
],
"cert": Array [
"<Buffer>",
],
"key": Array [
"<Buffer>",
],
"passphrase": "webpack-dev-server",
"pfx": Array [
"<Buffer>",
],
"requestCert": false,
}
`;
exports[`server option as object ca, pfx, key and cert are array of paths to files should handle GET request to index route (/): page errors 1`] = `Array []`;
exports[`server option as object ca, pfx, key and cert are array of paths to files should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as object ca, pfx, key and cert are array of paths to files should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
exports[`server option as object ca, pfx, key and cert are array of strings should handle GET request to index route (/): console messages 1`] = `Array []`;
exports[`server option as object ca, pfx, key and cert are array of strings should handle GET request to index route (/): https options 1`] = `
Object {
"ca": Array [
"-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAxAUVLFM+K3XDLQkBi7xt0s1Ip7JoHYDskzUDQNHjjMkUq5kv
C/hf5Ei1J6qruJs3Xqg86Nl4+ed4ynUajAkRRibhp0P1SG1tgPssIK6iC7g8heYu
Dy9WkFuMie0513zjSn6bMEAK5TegxYAWCbaCZX/Fw9bDniabL/zuOv4sf8J4EPhs
EENnH6sUE9HxPUgQmNt1Tbd0j1Cd5PXrSTLyfVPRh0m9QhXTUHuxsse8XSn9U2sw
duxJTWRINmhffYn+O7kbJGI77xYr8u58Rsf3HCMI8DTKZNvQLChvvtLJ9ckyu7Q+
T8emgklStASm3V2UtnriaK/IQEhgSdxqVRib3QIDAQABAoIBAGqWKPE1QnT3T+3J
G+ITz9P0dDFbvWltlTZmeSJh/s2q+WZloUNtBxdmwbqT/1QecnkyGgyzVCjvSKsu
CgVjW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v6
XNAFEoAjVEKrtirGWJ66YfQ9KSJ7Zttrd1Y1V1OLtq3z4YMH39wdQ8rOD+yR8mWV
6Tnsxma6yJXAH8uan8iVbxjIZKF1hnvNCxUoxYmWOmTLcEQMzmxvTzAiR+s6R6Uj
9LgGqppt30nM4wnOhOJU6UxqbwKBgQDdy03KidbPZuycJSy1C9AIt0jlrxDsYm+U
fZrB6mHEZcgoZS5GbLKinQCdGcgERa05BXvJmNbfZtT5a37YEnbjsTImIhDiBP5P
nW36/9a3Vg1svd1KP2206/Bh3gfZbgTsQg4YogXgjf0Uzuvw18btgTtLVpVyeuqz
TU3eeF30cwKBgQCN6lvOmapsDEs+T3uhqx4AUH53qp63PmjOSUAnANJGmsq6ROZV
HmHAy6nn9Qpf85BRHCXhZWiMoIhvc3As/EINNtWxS6hC/q6jqp4SvcD50cVFBroY
/16iWGXZCX+37A+DSOfTWgSDPEFcKRx41UOpStHbITgVgEPieo/NWxlHmQKBgQDX
JOLs2RB6V0ilnpnjdPXzvncD9fHgmwvJap24BPeZX3HtXViqD76oZsu1mNCg9EW3
zk3pnEyyoDlvSIreZerVq4kN3HWsCVP3Pqr0kz9g0CRtmy8RWr28hjHDfXD3xPUZ
iGnMEz7IOHOKv722/liFAprV1cNaLUmFbDNg3jmlaQKBgQDG5WwngPhOHmjTnSml
amfEz9a4yEhQqpqgVNW5wwoXOf6DbjL2m/maJh01giThj7inMcbpkZlIclxD0Eu6
Lof+ctCeqSAJvaVPmd+nv8Yp26zsF1yM8ax9xXjrIvv9fSbycNveGTDCsNNTiYoW
QyvMqmN1kGy20SZbQDD/fLfqBQ==
-----END PRIVATE KEY-----
",
],
"passphrase": "webpack-dev-server",
"pfx": Array [
"<Buffer>",
],
"requestCert": false,
}
`;
exports[`server option as object ca, pfx, key and cert are array of strings should handle GET request to index route (/): page errors 1`] = `Array []`;
exports[`server option as object ca, pfx, key and cert are array of strings should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as object ca, pfx, key and cert are array of strings should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
exports[`server option as object ca, pfx, key and cert are buffer should handle GET request to index route (/): console messages 1`] = `Array []`;
exports[`server option as object ca, pfx, key and cert are buffer should handle GET request to index route (/): https options 1`] = `
Object {
"ca": "<Buffer>",
"cert": "<Buffer>",
"key": "<Buffer>",
"passphrase": "webpack-dev-server",
"pfx": "<Buffer>",
"requestCert": false,
}
`;
exports[`server option as object ca, pfx, key and cert are buffer should handle GET request to index route (/): page errors 1`] = `Array []`;
exports[`server option as object ca, pfx, key and cert are buffer should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as object ca, pfx, key and cert are buffer should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
exports[`server option as object ca, pfx, key and cert are buffer, key and pfx are objects should handle GET request to index route (/): console messages 1`] = `Array []`;
exports[`server option as object ca, pfx, key and cert are buffer, key and pfx are objects should handle GET request to index route (/): https options 1`] = `
Object {
"ca": "<Buffer>",
"cert": "<Buffer>",
"key": Array [
Object {
"pem": "<Buffer>",
},
],
"passphrase": "webpack-dev-server",
"pfx": Array [
Object {
"buf": "<Buffer>",
},
],
"requestCert": false,
}
`;
exports[`server option as object ca, pfx, key and cert are buffer, key and pfx are objects should handle GET request to index route (/): page errors 1`] = `Array []`;
exports[`server option as object ca, pfx, key and cert are buffer, key and pfx are objects should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as object ca, pfx, key and cert are buffer, key and pfx are objects should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
exports[`server option as object ca, pfx, key and cert are paths to files should handle GET request to index route (/): console messages 1`] = `Array []`;
exports[`server option as object ca, pfx, key and cert are paths to files should handle GET request to index route (/): https options 1`] = `
Object {
"ca": "<Buffer>",
"cert": "<Buffer>",
"key": "<Buffer>",
"passphrase": "webpack-dev-server",
"pfx": "<Buffer>",
"requestCert": false,
}
`;
exports[`server option as object ca, pfx, key and cert are paths to files should handle GET request to index route (/): page errors 1`] = `Array []`;
exports[`server option as object ca, pfx, key and cert are paths to files should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as object ca, pfx, key and cert are paths to files should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
exports[`server option as object ca, pfx, key and cert are strings should handle GET request to index route (/): console messages 1`] = `Array []`;
exports[`server option as object ca, pfx, key and cert are strings should handle GET request to index route (/): https options 1`] = `
Object {
"ca": "-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAxAUVLFM+K3XDLQkBi7xt0s1Ip7JoHYDskzUDQNHjjMkUq5kv
C/hf5Ei1J6qruJs3Xqg86Nl4+ed4ynUajAkRRibhp0P1SG1tgPssIK6iC7g8heYu
Dy9WkFuMie0513zjSn6bMEAK5TegxYAWCbaCZX/Fw9bDniabL/zuOv4sf8J4EPhs
EENnH6sUE9HxPUgQmNt1Tbd0j1Cd5PXrSTLyfVPRh0m9QhXTUHuxsse8XSn9U2sw
duxJTWRINmhffYn+O7kbJGI77xYr8u58Rsf3HCMI8DTKZNvQLChvvtLJ9ckyu7Q+
T8emgklStASm3V2UtnriaK/IQEhgSdxqVRib3QIDAQABAoIBAGqWKPE1QnT3T+3J
G+ITz9P0dDFbvWltlTZmeSJh/s2q+WZloUNtBxdmwbqT/1QecnkyGgyzVCjvSKsu
CgVjWNVAhysgtNtxRT4BVflffBXLVH2qsBjpsLRGU6EcMXuPGTiEp3YRHNuO6Aj8
oP8fEsCGPc9DlJMGgxQRAKlrVF8TN/0j6Qk+YpS4MZ0YFQfBY+WdKu04Z8TVTplQ
tTkiGpBI+Oj85jF59aQiizglJgADkAZ6zmbrctm/G9jPxh7JLS2cKI0ECZgK5yAc
pk10E1YWhoCksjr9arxy6fS9TiX9P15vv06k+s7c4c5X7XDm3X0GWeSbqBMJb8q7
BhZQNzECgYEA4kAtymDBvFYiZFq7+lzQBRKAI1RCq7YqxlieumH0PSkie2bba3dW
NVdTi7at8+GDB9/cHUPKzg/skfJllek57MZmusiVwB/Lmp/IlW8YyGShdYZ7zQsV
KMWJlj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nn9Qpf85BRHCXhZWiMoIhvc3As/EINNtWxS6hC/q6jqp4SvcD50cVFBroY
/16iWGXZCX+37A+DSOfTWgSDPEFcKRx41UOpStHbITgVgEPieo/NWxlHmQKBgQDX
JOLs2RB6V0ilnpnjdPXzvncD9fHgmwvJap24BPeZX3HtXViqD76oZsu1mNCg9EW3
zk3pnEyyoDlvSIreZerVq4kN3HWsCVP3Pqr0kz9g0CRtmy8RWr28hjHDfXD3xPUZ
iGnMEz7IOHOKv722/liFAprV1cNaLUmFbDNg3jmlaQKBgQDG5WwngPhOHmjTnSml
amfEz9a4yEhQqpqgVNW5wwoXOf6DbjL2m/maJh01giThj7inMcbpkZlIclxD0Eu6
Lof+ctCeqSAJvaVPmd+nv8Yp26zsF1yM8ax9xXjrIvv9fSbycNveGTDCsNNTiYoW
QyvMqmN1kGy20SZbQDD/fLfqBQ==
-----END PRIVATE KEY-----
",
"passphrase": "webpack-dev-server",
"pfx": "<Buffer>",
"requestCert": false,
}
`;
exports[`server option as object ca, pfx, key and cert are strings should handle GET request to index route (/): page errors 1`] = `Array []`;
exports[`server option as object ca, pfx, key and cert are strings should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as object ca, pfx, key and cert are strings should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
exports[`server option as object ca, pfx, key and cert are strings, key and pfx are objects should handle GET request to index route (/): console messages 1`] = `Array []`;
exports[`server option as object ca, pfx, key and cert are strings, key and pfx are objects should handle GET request to index route (/): https options 1`] = `
Object {
"ca": "-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAxAUVLFM+K3XDLQkBi7xt0s1Ip7JoHYDskzUDQNHjjMkUq5kv
C/hf5Ei1J6qruJs3Xqg86Nl4+ed4ynUajAkRRibhp0P1SG1tgPssIK6iC7g8heYu
Dy9WkFuMie0513zjSn6bMEAK5TegxYAWCbaCZX/Fw9bDniabL/zuOv4sf8J4EPhs
EENnH6sUE9HxPUgQmNt1Tbd0j1Cd5PXrSTL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1kGy20SZbQDD/fLfqBQ==
-----END PRIVATE KEY-----
",
},
],
"passphrase": "webpack-dev-server",
"pfx": Array [
Object {
"buf": "<Buffer>",
},
],
"requestCert": false,
}
`;
exports[`server option as object ca, pfx, key and cert are strings, key and pfx are objects should handle GET request to index route (/): page errors 1`] = `Array []`;
exports[`server option as object ca, pfx, key and cert are strings, key and pfx are objects should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as object ca, pfx, key and cert are strings, key and pfx are objects should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
exports[`server option as object cacert and ca, pfx, key and cert are buffer should handle GET request to index route (/): console messages 1`] = `Array []`;
exports[`server option as object cacert and ca, pfx, key and cert are buffer should handle GET request to index route (/): https options 1`] = `
Object {
"ca": "<Buffer>",
"cert": "<Buffer>",
"key": "<Buffer>",
"passphrase": "webpack-dev-server",
"pfx": "<Buffer>",
"requestCert": false,
}
`;
exports[`server option as object cacert and ca, pfx, key and cert are buffer should handle GET request to index route (/): page errors 1`] = `Array []`;
exports[`server option as object cacert and ca, pfx, key and cert are buffer should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as object cacert and ca, pfx, key and cert are buffer should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
exports[`server option as object cacert, pfx, key and cert are buffer should handle GET request to index route (/): console messages 1`] = `Array []`;
exports[`server option as object cacert, pfx, key and cert are buffer should handle GET request to index route (/): https options 1`] = `
Object {
"ca": "<Buffer>",
"cert": "<Buffer>",
"key": "<Buffer>",
"passphrase": "webpack-dev-server",
"pfx": "<Buffer>",
"requestCert": false,
}
`;
exports[`server option as object cacert, pfx, key and cert are buffer should handle GET request to index route (/): page errors 1`] = `Array []`;
exports[`server option as object cacert, pfx, key and cert are buffer should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as object cacert, pfx, key and cert are buffer should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
exports[`server option as object custom server with options should handle GET request to index route (/): console messages 1`] = `Array []`;
exports[`server option as object custom server with options should handle GET request to index route (/): http options 1`] = `
Object {
"maxHeaderSize": 16384,
}
`;
exports[`server option as object custom server with options should handle GET request to index route (/): page errors 1`] = `Array []`;
exports[`server option as object custom server with options should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as object custom server with options should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
exports[`server option as object options should be prioritized over http2 options should handle GET request to index route (/): console messages 1`] = `Array []`;
exports[`server option as object options should be prioritized over http2 options should handle GET request to index route (/): https options 1`] = `
Object {
"ca": Array [
"<Buffer>",
],
"cert": Array [
"<Buffer>",
],
"key": Array [
"<Buffer>",
],
"passphrase": "webpack-dev-server",
"pfx": Array [
"<Buffer>",
],
"requestCert": false,
}
`;
exports[`server option as object options should be prioritized over http2 options should handle GET request to index route (/): page errors 1`] = `Array []`;
exports[`server option as object options should be prioritized over http2 options should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as object options should be prioritized over http2 options should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
exports[`server option as object options should be prioritized over https options should handle GET request to index route (/): console messages 1`] = `Array []`;
exports[`server option as object options should be prioritized over https options should handle GET request to index route (/): https options 1`] = `
Object {
"ca": Array [
"<Buffer>",
],
"cert": Array [
"<Buffer>",
],
"key": Array [
"<Buffer>",
],
"passphrase": "webpack-dev-server",
"pfx": Array [
"<Buffer>",
],
"requestCert": false,
}
`;
exports[`server option as object options should be prioritized over https options should handle GET request to index route (/): page errors 1`] = `Array []`;
exports[`server option as object options should be prioritized over https options should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as object options should be prioritized over https options should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
exports[`server option as object should support the "requestCert" option should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as object should support the "requestCert" option should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
exports[`server option as object should support the "requestCert" option should pass options to the 'https.createServer' method: https options 1`] = `
Object {
"cert": "<Buffer>",
"key": "<Buffer>",
"passphrase": "webpack-dev-server",
"pfx": "<Buffer>",
"requestCert": true,
}
`;
exports[`server option as object spdy server with options should handle GET request to index route (/): console messages 1`] = `Array []`;
exports[`server option as object spdy server with options should handle GET request to index route (/): https options 1`] = `
Object {
"ca": Array [
"<Buffer>",
],
"cert": Array [
"<Buffer>",
],
"key": Array [
"<Buffer>",
],
"passphrase": "webpack-dev-server",
"pfx": Array [
"<Buffer>",
],
"requestCert": false,
"spdy": Object {
"protocols": Array [
"h2",
"http/1.1",
],
},
}
`;
exports[`server option as object spdy server with options should handle GET request to index route (/): page errors 1`] = `Array []`;
exports[`server option as object spdy server with options should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as object spdy server with options should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
exports[`server option as string custom-http should handle GET request to index route (/): console messages 1`] = `Array []`;
exports[`server option as string custom-http should handle GET request to index route (/): page errors 1`] = `Array []`;
exports[`server option as string custom-http should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as string custom-http should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
exports[`server option as string http should handle GET request to index route (/): console messages 1`] = `Array []`;
exports[`server option as string http should handle GET request to index route (/): page errors 1`] = `Array []`;
exports[`server option as string http should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as string http should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
exports[`server option as string https should handle GET request to index route (/): console messages 1`] = `Array []`;
exports[`server option as string https should handle GET request to index route (/): page errors 1`] = `Array []`;
exports[`server option as string https should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as string https should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;
exports[`server option as string spdy should handle GET request to index route (/): console messages 1`] = `Array []`;
exports[`server option as string spdy should handle GET request to index route (/): page errors 1`] = `Array []`;
exports[`server option as string spdy should handle GET request to index route (/): response status 1`] = `200`;
exports[`server option as string spdy should handle GET request to index route (/): response text 1`] = `
"Heyo.
"
`;