@@ -1074,16 +1074,12 @@ function runTests(server: Server) {
1074
1074
'' ,
1075
1075
'---' ,
1076
1076
'Content-Type: application/json; charset=utf-8' ,
1077
- 'Content-Length: 26' ,
1078
1077
'' ,
1079
1078
'{"data":{},"hasNext":true}' ,
1080
- '' ,
1081
1079
'---' ,
1082
1080
'Content-Type: application/json; charset=utf-8' ,
1083
- 'Content-Length: 78' ,
1084
1081
'' ,
1085
1082
'{"data":{"test":"Hello World"},"path":[],"label":"deferLabel","hasNext":false}' ,
1086
- '' ,
1087
1083
'-----' ,
1088
1084
'' ,
1089
1085
] . join ( '\r\n' ) ,
@@ -1204,13 +1200,10 @@ function runTests(server: Server) {
1204
1200
'' ,
1205
1201
'---' ,
1206
1202
'Content-Type: application/json; charset=utf-8' ,
1207
- 'Content-Length: 35' ,
1208
1203
'' ,
1209
1204
[ '{' , ' "data": {},' , ' "hasNext": true' , '}' ] . join ( '\n' ) ,
1210
- '' ,
1211
1205
'---' ,
1212
1206
'Content-Type: application/json; charset=utf-8' ,
1213
- 'Content-Length: 79' ,
1214
1207
'' ,
1215
1208
[
1216
1209
'{' ,
@@ -1221,7 +1214,6 @@ function runTests(server: Server) {
1221
1214
' "hasNext": false' ,
1222
1215
'}' ,
1223
1216
] . join ( '\n' ) ,
1224
- '' ,
1225
1217
'-----' ,
1226
1218
'' ,
1227
1219
] . join ( '\r\n' ) ,
@@ -1413,16 +1405,12 @@ function runTests(server: Server) {
1413
1405
'' ,
1414
1406
'---' ,
1415
1407
'Content-Type: application/json; charset=utf-8' ,
1416
- 'Content-Length: 94' ,
1417
1408
'' ,
1418
1409
'{"errors":[{"message":"Custom error format: Throws!"}],"data":{"thrower":null},"hasNext":true}' ,
1419
- '' ,
1420
1410
'---' ,
1421
1411
'Content-Type: application/json; charset=utf-8' ,
1422
- 'Content-Length: 57' ,
1423
1412
'' ,
1424
1413
'{"data":{"test":"Hello World"},"path":[],"hasNext":false}' ,
1425
- '' ,
1426
1414
'-----' ,
1427
1415
'' ,
1428
1416
] . join ( '\r\n' ) ,
@@ -1464,16 +1452,12 @@ function runTests(server: Server) {
1464
1452
'' ,
1465
1453
'---' ,
1466
1454
'Content-Type: application/json; charset=utf-8' ,
1467
- 'Content-Length: 46' ,
1468
1455
'' ,
1469
1456
'{"data":{"test":"Hello World"},"hasNext":true}' ,
1470
- '' ,
1471
1457
'---' ,
1472
1458
'Content-Type: application/json; charset=utf-8' ,
1473
- 'Content-Length: 105' ,
1474
1459
'' ,
1475
1460
'{"data":{"thrower":null},"path":[],"errors":[{"message":"Custom error format: Throws!"}],"hasNext":false}' ,
1476
- '' ,
1477
1461
'-----' ,
1478
1462
'' ,
1479
1463
] . join ( '\r\n' ) ,
@@ -2426,16 +2410,12 @@ function runTests(server: Server) {
2426
2410
'' ,
2427
2411
'---' ,
2428
2412
'Content-Type: application/json; charset=utf-8' ,
2429
- 'Content-Length: 48' ,
2430
2413
'' ,
2431
2414
'{"data":{"test2":"Modification"},"hasNext":true}' ,
2432
- '' ,
2433
2415
'---' ,
2434
2416
'Content-Type: application/json; charset=utf-8' ,
2435
- 'Content-Length: 64' ,
2436
2417
'' ,
2437
2418
'{"errors":[{"message":"I did something wrong"}],"hasNext":false}' ,
2438
- '' ,
2439
2419
'-----' ,
2440
2420
'' ,
2441
2421
] . join ( '\r\n' ) ,
@@ -2500,10 +2480,9 @@ function runTests(server: Server) {
2500
2480
'' ,
2501
2481
'---' ,
2502
2482
'Content-Type: application/json; charset=utf-8' ,
2503
- 'Content-Length: 47' ,
2504
2483
'' ,
2505
2484
'{"data":{"test":"Hello, World"},"hasNext":true}' ,
2506
- '' ,
2485
+ '---\r\n ' ,
2507
2486
] . join ( '\r\n' ) ,
2508
2487
) ;
2509
2488
expect ( fakeReturn . callCount ) . to . equal ( 1 ) ;
@@ -2565,10 +2544,9 @@ function runTests(server: Server) {
2565
2544
'' ,
2566
2545
'---' ,
2567
2546
'Content-Type: application/json; charset=utf-8' ,
2568
- 'Content-Length: 47' ,
2569
2547
'' ,
2570
2548
'{"data":{"test":"Hello, World"},"hasNext":true}' ,
2571
- '' ,
2549
+ '---\r\n ' ,
2572
2550
] . join ( '\r\n' ) ,
2573
2551
) ;
2574
2552
} ) ;
@@ -2721,16 +2699,12 @@ function runTests(server: Server) {
2721
2699
'' ,
2722
2700
'---' ,
2723
2701
'Content-Type: application/json; charset=utf-8' ,
2724
- 'Content-Length: 124' ,
2725
2702
'' ,
2726
2703
'{"data":{"hello":"Hello Rob"},"hasNext":true,"extensions":{"preservedResult":{"data":{"hello":"Hello Rob"},"hasNext":true}}}' ,
2727
- '' ,
2728
2704
'---' ,
2729
2705
'Content-Type: application/json; charset=utf-8' ,
2730
- 'Content-Length: 148' ,
2731
2706
'' ,
2732
2707
'{"data":{"test":"Hello World"},"path":[],"hasNext":false,"extensions":{"preservedResult":{"data":{"test":"Hello World"},"path":[],"hasNext":false}}}' ,
2733
- '' ,
2734
2708
'-----' ,
2735
2709
'' ,
2736
2710
] . join ( '\r\n' ) ,
@@ -2801,16 +2775,12 @@ function runTests(server: Server) {
2801
2775
'' ,
2802
2776
'---' ,
2803
2777
'Content-Type: application/json; charset=utf-8' ,
2804
- 'Content-Length: 45' ,
2805
2778
'' ,
2806
2779
'{"data":{"hello":"Hello Rob"},"hasNext":true}' ,
2807
- '' ,
2808
2780
'---' ,
2809
2781
'Content-Type: application/json; charset=utf-8' ,
2810
- 'Content-Length: 57' ,
2811
2782
'' ,
2812
2783
'{"data":{"test":"Hello World"},"path":[],"hasNext":false}' ,
2813
- '' ,
2814
2784
'-----' ,
2815
2785
'' ,
2816
2786
] . join ( '\r\n' ) ,
0 commit comments