Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Conversation

@alexlafroscia
Copy link
Collaborator

@alexlafroscia alexlafroscia commented Jul 1, 2016

We used to call options() twice, but avoiding that extra work isn't too hard. Also adds tests to verify that the method is only called once per type of request method called (request and raw, respectively).

Closes #122


Also adds a bunch of test refactoring to make them a little bit cleaner and to take advantage of some of the Mocha and Chai features that we're not yet using.

We used to call `options()` twice, but avoiding that extra work
isn't too hard.  Also adds tests to verify that the method is only
called once per type of request method called (`request` and `raw`,
respectively).

Closes #122
@alexlafroscia alexlafroscia force-pushed the avoid-calling-options-method-twice branch from f2b288b to 88eb8bf Compare July 1, 2016 00:41
@alexlafroscia alexlafroscia changed the title Refactor request logic to avoid duplicate calls Refactor request logic to avoid duplicate calls/Refactor tests Jul 1, 2016
@alexlafroscia alexlafroscia removed the WIP label Jul 4, 2016
@alexlafroscia
Copy link
Collaborator Author

@rwjblue would you mind taking a look real quick, before I merge this?

@alexlafroscia alexlafroscia merged commit dc2b748 into master Jul 16, 2016
@alexlafroscia alexlafroscia deleted the avoid-calling-options-method-twice branch October 18, 2016 15:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants