1 describe('app.cars', function() {
9 beforeEach(function() {
12 inject(function(_$httpBackend_, _$log_, _cars_, _API_) {
13 $httpBackend = _$httpBackend_;
20 describe('cars service', function () {
22 it('should invoke GET all cars', function () {
23 $httpBackend.expectGET(API.CARS).respond({});
31 afterEach(function() {
32 $httpBackend.verifyNoOutstandingExpectation();
33 $httpBackend.verifyNoOutstandingRequest();