dd35564df4
Remove statuses and replace http-errors with http-errors-lite
2019-10-11 16:40:06 +00:00
Robert Nagy
817b498305
test: fix body test ( #1375 )
...
Setting body will set the content-length header. Unless the
corresponding number of bytes are sent the response will
be aborted and not emit 'end'.
2019-08-23 18:57:56 +08:00
Robert Nagy
f75d445535
test: fix end after end ( #1374 )
2019-08-23 18:57:32 +08:00
Yiyu He
2c86b10fea
test: remove jest and use egg-bin(mocha) ( #1363 )
2019-07-30 18:00:43 +08:00
dead-horse
d4bdb5ed9e
chore: update eslint and fix lint errors
2019-06-26 11:15:22 +08:00
Yiyu He
3c23aa5b74
feat: ignore set header/status when header sent ( #1137 )
2018-02-11 16:25:24 +08:00
JamesWang
77ca4290a1
test: replace request(app.listen()) with request(app.callback())
2017-09-25 23:07:57 -05:00
jongleberry
86ab4ae84a
Revert "refactor: remove duplicate assignment in respond test ( #1055 )" ( #1056 )
...
This reverts commit c161c0f2e9
.
2017-09-11 21:35:13 -05:00
Clark Du
c161c0f2e9
refactor: remove duplicate assignment in respond test ( #1055 )
...
Signed-off-by: Clark Du <clark.duxin@gmail.com>
2017-09-11 10:22:34 -07:00
Gilles De Mey
d394724200
test: Use Jest ( #981 )
2017-05-11 11:30:32 +08:00
Fangdun Cai
18d753ca2d
use Buffer.from instead ( #946 )
2017-03-20 14:48:37 +08:00
jongleberry
4816cd76f0
:arrow-up: deps
...
closes #939
2017-03-14 01:55:15 -07:00
Lee Bousfield
6a147726bd
Add support for flushing headers
2016-03-03 21:01:56 -07:00
broucz
4b1a1da652
test: switch all functions to arrow functions
...
closes #553
Update test: application -> use() should throw if not a function
Fix lint
Use arrow function
Refactor test using arrow function
Remove non mandatory brackets
fix for merge
Fix: missing refactor after merge
Use arrow function for old generator
2015-11-02 11:22:05 -08:00
Slobodan Stojanovic
b08facb7bd
Fix indentation and add .eslint rules
...
closes #555
2015-10-29 09:55:34 -07:00
Felix Becker
ebb4850709
Remove co dependency
...
closes #558
closes #557
Change tests to use plain functions and promises
Add test
return promise in middleware
Change benchmarks to use plain functions and promises
typeerror
2015-10-27 16:24:25 -07:00
Slobodan Stojanovic
cc1d41f5e3
Refactor tests - add arrow functions
...
Refactor tests - move .should to the same line as arrow function
2015-10-25 13:26:36 -07:00
jongleberry
2e8cdab8bc
support async functions
...
closes #530
closes #415
2015-10-22 16:34:59 -07:00
jongleberry
16db0f60c4
eslint: add no-var rule
2015-10-22 15:46:47 -07:00
Santiago Sotomayor
0c438ed435
unset content-type when the type is unknown
...
closes #532
closes #536
2015-10-22 15:39:16 -07:00
Michaël Zasso
b5c09a1719
test: fix style issues
2015-10-13 09:23:57 +02:00
Tejas Manohar
93ade5e2dd
refactor Application into a class
2015-10-13 01:19:42 -05:00
Tejas Manohar
e8f79d43f9
modularize tests for application
...
closes #517
add index test for Application
add app.toJSON test
add test for app.inspect()
add tests for app.use()
add tests for app.onerror()
add tests for app.respond()
add tests for app.context()
add tests for app.request()
add tests for app.response
refactor for non-existence of test/app...js
no need for *.js
use helpers/ dir for non-tests
2015-10-12 00:08:06 -07:00