Skip to content

Conversation

@TueCN
Copy link

@TueCN TueCN commented Jan 15, 2016

Each property value of the config obj that is a non-function value can be created as a sinon stub. This makes it possible to dynamically configure the stub further while testing, to e.g. make conditional returns based on argument values (see http://sinonjs.org/docs/#stubs-api).

TueCN added 4 commits January 14, 2016 17:59
…en the value of a config obj property is a non-function value. This makes it possible to dynamically configure the stub while testing
… try/catch so mocha can be informed about the error in a nice way that doesn't halt the test suite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant