Commit 8e759b9e by Daniel Cadenas

Add timeout to the blacklist

parent ed0c7b6e
......@@ -111,7 +111,7 @@ function extractParams (options) {
var params = _.omit(options || {},
'path', 'method', 'params',
'client', 'api', 'stream',
'headers'
'headers', 'timeout'
);
return _.isEmpty(params) ? null : params;
......
......@@ -38,6 +38,13 @@ describe('Person', function () {
return Person.find({email: 'alex@alexmaccaw.com', subscribe: true});
});
it('removes non query options from the url', function () {
mock
.get('/v2/people/find?email=alex%40alexmaccaw.com')
.reply(200, alex);
return Person.find({email: 'alex@alexmaccaw.com', timeout: 10000});
});
it('can handle queued requests', function () {
mock
.get('/v2/people/find?email=alex%40alexmaccaw.com')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment