Closed Rleahy22 closed 9 years ago
With setup:
bard.inject('$controller', '$q', '$rootScope', 'serviceName');
When calling
bard.mockService(serviceName, { method: $q.when({}) });
in my tests I get an error:
'undefined' is not an object (evaluating 'service[key] = sinon.spy(function() { return value; })')
at /{myApp}/bower_components/bardjs/dist/bard.js:561
my bower file incldues:
"devDependencies": { "angular-mocks": "~1.4.0", "bardjs": "~0.1.3", "sinon": "~1.14.1" }
and all bower_components are included in my karma.conf.js file
never mind, figured it out
With setup:
When calling
in my tests I get an error:
at /{myApp}/bower_components/bardjs/dist/bard.js:561
my bower file incldues:
and all bower_components are included in my karma.conf.js file