File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const tests = [417, 417];
9
9
let testsComplete = 0 ;
10
10
let testIdx = 0 ;
11
11
12
- const s = http . createServer ( function ( req , res ) {
12
+ const s = http . createServer ( ( req , res ) => {
13
13
throw new Error ( 'this should never be executed' ) ;
14
14
} ) ;
15
15
@@ -34,13 +34,13 @@ function nextTest() {
34
34
} ) ) ;
35
35
}
36
36
37
- http . get ( options , function ( response ) {
37
+ http . get ( options , ( response ) => {
38
38
console . log ( `client: expected status: ${ test } ` ) ;
39
39
console . log ( `client: statusCode: ${ response . statusCode } ` ) ;
40
40
assert . strictEqual ( response . statusCode , test ) ;
41
41
assert . strictEqual ( response . statusMessage , 'Expectation Failed' ) ;
42
42
43
- response . on ( 'end' , function ( ) {
43
+ response . on ( 'end' , ( ) => {
44
44
testsComplete ++ ;
45
45
testIdx ++ ;
46
46
nextTest ( ) ;
@@ -50,6 +50,6 @@ function nextTest() {
50
50
}
51
51
52
52
53
- process . on ( 'exit' , function ( ) {
53
+ process . on ( 'exit' , ( ) => {
54
54
assert . strictEqual ( testsComplete , 2 ) ;
55
55
} ) ;
You can’t perform that action at this time.
0 commit comments