Commit Graph

27 Commits

Author SHA1 Message Date
Daniel García Aubert
014158c968 Eslint errors 2019-12-26 17:46:27 +01:00
Daniel García Aubert
cc535b13d2 Use asert.strict mode 2019-12-26 14:23:21 +01:00
Daniel García Aubert
5a96dbb59c Run eslint --fix 2019-12-23 18:19:08 +01:00
Raul Marin
7b02bf13af Add tests for x-sqlapi-log length 2019-07-31 15:58:05 +02:00
Daniel García Aubert
a616982ec3 Use strict mode 2018-10-24 15:42:33 +02:00
Simon Martín
7e71f8dc3b supporting multipart requests 2018-05-03 18:32:15 +02:00
Raul Ochoa
afcb25be76 Dont debug that much 2016-12-19 15:30:03 +01:00
Raul Ochoa
38c3c4b4b0 More debug 2016-12-19 15:29:52 +01:00
Raul Ochoa
e2c916f4ea Add debugging info in assert.response 2016-12-19 15:29:41 +01:00
Daniel García Aubert
ce51fb8860 Set tiemout for test client to 5s 2016-11-24 00:15:17 +01:00
Daniel García Aubert
93a8fcc2f9 Make customizable timeout value for request 2016-11-23 12:30:16 +01:00
Daniel García Aubert
172c9d91e8 Set request timeout to 4sec 2016-11-22 11:54:22 +01:00
Daniel García Aubert
d152aa7ec9 Set request timeout to 5sec 2016-11-22 11:41:35 +01:00
Daniel García Aubert
0f5a67833f Set default timeout for assert response to 4 sec 2016-11-21 18:29:46 +01:00
Raul Ochoa
b29358a0ed Remove old response from assert 2016-09-26 18:11:40 +02:00
Raul Ochoa
abc2f130c9 Migrate to express 4.x series
- Remove express logger
 - Error handler responds with application/[json|javascript]
 - Fix all tests relying on res.headers
 - assert.response based on request module
2016-09-26 18:09:27 +02:00
Raul Ochoa
c9846a2437 Change callback signature in assert.response 2016-09-26 14:37:40 +02:00
Daniel García Aubert
052cb0796d Modified fallback tests in order to use our custom assert.response 2016-05-20 14:42:53 +02:00
Raul Ochoa
0500d21fd5 Removes unused method in assert extension 2014-08-28 10:43:36 +02:00
Raul Ochoa
6525b62fe2 Adds extra information when status/headers dont match 2014-08-27 17:09:31 +02:00
Raul Ochoa
840afa7a77 Make check() before any other assert 2014-08-27 16:39:16 +02:00
Raul Ochoa
85c70cc5f4 Call check before callback so the server is closed before the callback
throws an exception
2014-08-27 16:28:03 +02:00
Raul Ochoa
96e47c4bdb Corrects JSDoc 2014-08-26 18:25:17 +02:00
Sandro Santilli
b0d0d4d073 Reduce work on aborted requests
Closes #129
Includes testcase
2014-03-19 13:30:29 +01:00
Sandro Santilli
6c47537f47 Honour the 'node_socket_timeout' configuration directive
Closes #128
Includes testcase, which required enhancing assert.response to
handle errors.
Changes app controller to a function that only reads configuration
when executed (rather than when only require'd).
2014-01-31 10:58:19 +01:00
Sandro Santilli
192bc736ca Disable http client connection pooling while running tests
This is a workaround for issue #38
2012-07-16 13:38:40 +02:00
Sandro Santilli
e4f3a94256 Port tests to mocha. Closes #35. 2012-07-13 10:29:09 +02:00