koa-lite/test/request
Ruben Bridgewater 13086d2fcd fix tests: remove unnecessary assert doesNotThrow and api calls (#1170)
* tests: fix error verification

So far the error message was not tested at all. This change makes
sure the error will actually be tested for.

* tests: remove unnecessary api calls

`assert.doesNotThrow` does not provide any benefit since it will
only catch errors and then rethrow in case of an error.
2018-04-09 19:36:52 -07:00
..
accepts.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
acceptsCharsets.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
acceptsEncodings.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
acceptsLanguages.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
charset.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
fresh.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
get.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
header.js added setters for header and headers, fixes #991 2017-06-20 09:57:07 -07:00
headers.js added setters for header and headers, fixes #991 2017-06-20 09:57:07 -07:00
host.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
hostname.js Use node 7+ WHATWG parser for hostname, fixes #1002 (#1004) 2017-06-20 09:57:30 -07:00
href.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
idempotent.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
inspect.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
ip.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
ips.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
is.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
length.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
origin.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
path.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
protocol.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
query.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
querystring.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
search.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
secure.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
stale.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
subdomains.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
type.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
whatwg-url.js fix tests: remove unnecessary assert doesNotThrow and api calls (#1170) 2018-04-09 19:36:52 -07:00