Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
fix to work with angular.js mock 1.3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
erkobridee committed Jan 26, 2015
1 parent 46fabfe commit 866582e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ngMockBackend/angular-mocks-backend.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
AngularJS Mocks Backend v0.1.6
https://github.com/the-front/angular-mocks-backend/releases/tag/0.1.6
AngularJS Mocks Backend v0.1.7
https://github.com/the-front/angular-mocks-backend/releases/tag/0.1.7
License: MIT
*/
(function(angular) {
Expand Down Expand Up @@ -192,7 +192,7 @@
function($provide) {

var obj = new angular.mock.$HttpBackendProvider(),
createHttpBackendMock = obj.$get[1];
createHttpBackendMock = obj.$get[ obj.$get.length - 1 ]; // for angular mock 1.3.4 +

// Decorate by passing in the constructor for mock $httpBackend
$provide.decorator('$httpBackend', createHttpBackendMock);
Expand Down

0 comments on commit 866582e

Please sign in to comment.