Open kburson opened 8 years ago
Yup this is an issue because the doc clearly states that you should be able to omit config:
/**
* Mocks out a service with sinon stubbed functions
* that return the values specified in the config
*
* If the config value is `undefined`,
* stub the service method with a dummy that doesn't return a value
+1
If you try to use mockService without the config you will get an error:
The problem area is here where if the config has a key you use that key, otherwise you use the config._default, but if there is no config there can be no config._default...