What is the most elegant way to write Karma unit tests in mocha that have dependency injection and done ?
Dependency Inclusion:
describe('cows', function(){ it('farts a lot', inject(function(cow){
Done
describe('cows', function(){ it('farts a lot', function(done){
What if I want cow and done be available in unit test? Right now, this is what I am doing and it is unsatisfactory.
beforeEach(inject(function(cow){ this.cow = cow; })) it('farts a lot', function(done){ this.cow
source share