@@ -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' ) ,
@@ -2453,16 +2437,12 @@ function runTests(server: Server) {
2453
2437
'' ,
2454
2438
'---' ,
2455
2439
'Content-Type: application/json; charset=utf-8' ,
2456
- 'Content-Length: 48' ,
2457
2440
'' ,
2458
2441
'{"data":{"test2":"Modification"},"hasNext":true}' ,
2459
- '' ,
2460
2442
'---' ,
2461
2443
'Content-Type: application/json; charset=utf-8' ,
2462
- 'Content-Length: 64' ,
2463
2444
'' ,
2464
2445
'{"errors":[{"message":"I did something wrong"}],"hasNext":false}' ,
2465
- '' ,
2466
2446
'-----' ,
2467
2447
'' ,
2468
2448
] . join ( '\r\n' ) ,
@@ -2527,10 +2507,9 @@ function runTests(server: Server) {
2527
2507
'' ,
2528
2508
'---' ,
2529
2509
'Content-Type: application/json; charset=utf-8' ,
2530
- 'Content-Length: 47' ,
2531
2510
'' ,
2532
2511
'{"data":{"test":"Hello, World"},"hasNext":true}' ,
2533
- '' ,
2512
+ '---\r\n ' ,
2534
2513
] . join ( '\r\n' ) ,
2535
2514
) ;
2536
2515
expect ( fakeReturn . callCount ) . to . equal ( 1 ) ;
@@ -2592,10 +2571,9 @@ function runTests(server: Server) {
2592
2571
'' ,
2593
2572
'---' ,
2594
2573
'Content-Type: application/json; charset=utf-8' ,
2595
- 'Content-Length: 47' ,
2596
2574
'' ,
2597
2575
'{"data":{"test":"Hello, World"},"hasNext":true}' ,
2598
- '' ,
2576
+ '---\r\n ' ,
2599
2577
] . join ( '\r\n' ) ,
2600
2578
) ;
2601
2579
} ) ;
@@ -2748,16 +2726,12 @@ function runTests(server: Server) {
2748
2726
'' ,
2749
2727
'---' ,
2750
2728
'Content-Type: application/json; charset=utf-8' ,
2751
- 'Content-Length: 124' ,
2752
2729
'' ,
2753
2730
'{"data":{"hello":"Hello Rob"},"hasNext":true,"extensions":{"preservedResult":{"data":{"hello":"Hello Rob"},"hasNext":true}}}' ,
2754
- '' ,
2755
2731
'---' ,
2756
2732
'Content-Type: application/json; charset=utf-8' ,
2757
- 'Content-Length: 148' ,
2758
2733
'' ,
2759
2734
'{"data":{"test":"Hello World"},"path":[],"hasNext":false,"extensions":{"preservedResult":{"data":{"test":"Hello World"},"path":[],"hasNext":false}}}' ,
2760
- '' ,
2761
2735
'-----' ,
2762
2736
'' ,
2763
2737
] . join ( '\r\n' ) ,
@@ -2828,16 +2802,12 @@ function runTests(server: Server) {
2828
2802
'' ,
2829
2803
'---' ,
2830
2804
'Content-Type: application/json; charset=utf-8' ,
2831
- 'Content-Length: 45' ,
2832
2805
'' ,
2833
2806
'{"data":{"hello":"Hello Rob"},"hasNext":true}' ,
2834
- '' ,
2835
2807
'---' ,
2836
2808
'Content-Type: application/json; charset=utf-8' ,
2837
- 'Content-Length: 57' ,
2838
2809
'' ,
2839
2810
'{"data":{"test":"Hello World"},"path":[],"hasNext":false}' ,
2840
- '' ,
2841
2811
'-----' ,
2842
2812
'' ,
2843
2813
] . join ( '\r\n' ) ,
0 commit comments