Commit f40ca241 by Ben Drucker

Test ability to change query parameters for a Person#find call

parent 63e7ce12
......@@ -44,6 +44,20 @@ describe('Person', function () {
});
});
it('can subscribe to a person', function () {
mock
.get('/v1/people/email/alex@alexmaccaw.com?subscribe=true')
.reply(200);
return Person.find({email: 'alex@alexmaccaw.com', subscribe: true});
});
it('can override the company setting', function () {
mock
.get('/v1/people/email/alex@alexmaccaw.com?company=false')
.reply(200);
return Person.find({email: 'alex@alexmaccaw.com', company: false});
});
});
});
\ No newline at end of file
});
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