When I try to use $httpBackend.flush(); I get error TypeError: $browser.cookies is not a function. I can't find any information about this kind of error and any solutions.
describe("someText", function() {
    var $httpBackend;
    var someManager;
    var authRequestHandler;
    var dataMockup = [];
    beforeEach(function(){
        module('app');
        inject(function($injector){
            $httpBackend = $injector.get('$httpBackend');
            someManager = $injector.get('someManager');
            authRequestHandler = $httpBackend.when('GET', 'someUrl.php')
                .respond(dataMockup);
        });
    });
    it('test first action', function() {
        $httpBackend.expectGET('someUrl.php');
        messageManager.loadData();
        $httpBackend.flush(); // There i got error
    });
});
- Angular: 1.3.15
- Jasmine: 2.3.4
 
    