mocha test structure code example
Example 1: mocha test inject
it('should have a working meals-server service', inject(function(mealsServer) {
expect(mealsServer).to.exist;
}));
Example 2: mocha test inject
var mealsServer;
beforeEach(inject(function(_mealsServer_) {
mealsServer = _mealsServer_;
}));