koa-lite/test/response
jongleberry e9d7abaf79 res: use http.ServerResponse._header when accessors exist (#930)
* Don't use http.ServerResponse._header when accessors exist

Structure of http.ServerResponse._header will change in future
Node versions. Avoid reading and setting it directly when
helpers exist.

* Add new header test case

* make things a little more strict
2017-03-07 22:59:24 -08:00
..
append.js test: switch all functions to arrow functions 2015-11-02 11:22:05 -08:00
attachment.js fix tests on node 6 2016-04-30 09:19:29 +02:00
body.js test: switch all functions to arrow functions 2015-11-02 11:22:05 -08:00
etag.js test: switch all functions to arrow functions 2015-11-02 11:22:05 -08:00
flushHeaders.js fix: res.flushHeaders() (#795) 2016-08-10 12:15:48 -07:00
header.js res: use http.ServerResponse._header when accessors exist (#930) 2017-03-07 22:59:24 -08:00
headers.js test: switch all functions to arrow functions 2015-11-02 11:22:05 -08:00
inspect.js test: switch all functions to arrow functions 2015-11-02 11:22:05 -08:00
is.js test: switch all functions to arrow functions 2015-11-02 11:22:05 -08:00
last-modified.js test: switch all functions to arrow functions 2015-11-02 11:22:05 -08:00
length.js test: switch all functions to arrow functions 2015-11-02 11:22:05 -08:00
message.js test: switch all functions to arrow functions 2015-11-02 11:22:05 -08:00
redirect.js test: switch all functions to arrow functions 2015-11-02 11:22:05 -08:00
remove.js test: switch all functions to arrow functions 2015-11-02 11:22:05 -08:00
set.js test: switch all functions to arrow functions 2015-11-02 11:22:05 -08:00
socket.js test: switch all functions to arrow functions 2015-11-02 11:22:05 -08:00
status.js test: switch all functions to arrow functions 2015-11-02 11:22:05 -08:00
type.js test: switch all functions to arrow functions 2015-11-02 11:22:05 -08:00
vary.js test: switch all functions to arrow functions 2015-11-02 11:22:05 -08:00
writeable.js fix(response): correct response.writable logic (#782) 2016-07-24 01:20:29 +08:00