Skip to content

Commit f4e4dfc

Browse files
Moritz Petersmaritz
authored andcommitted
Remove arrow function in tests
1 parent 6e1ae36 commit f4e4dfc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/compression.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,13 @@ describe('compression()', function () {
308308
res.end('hello, world')
309309
})
310310

311-
var request = createHttp2Client().request({
311+
var client = createHttp2Client()
312+
var request = client.request({
312313
'Accept-Encoding': 'gzip'
313314
})
314-
request.on('response', (headers) => {
315+
request.on('response', function (headers) {
315316
assert.equal(headers['content-encoding'], 'gzip')
317+
client.destroy()
316318
done()
317319
})
318320
request.end()

0 commit comments

Comments
 (0)