Skip to content
This repository has been archived by the owner on Aug 7, 2019. It is now read-only.

E2E backend testing with angular mocks #25

Open
a-hahn opened this issue Jun 21, 2013 · 1 comment
Open

E2E backend testing with angular mocks #25

a-hahn opened this issue Jun 21, 2013 · 1 comment

Comments

@a-hahn
Copy link

a-hahn commented Jun 21, 2013

I'm trying to set up e2e backend tests with angular mocks and passThrough() like in this fiddle:
http://jsfiddle.net/vojtajina/DQHdk/
there seems to be something wrong with my initialization code in the testSpec.js as #passThrough() is not a valid function in this context.

    uit.append(function(angular) {
        var mod = angular.module("ng");
        mod.config(function($provide) {
            $provide.decorator('$http', ['$delegate', '$httpBackend', function($http, $httpBackend) {
                $httpBackend.whenGET().passThrough();
                return $http;
            }]);
        });
    });

thx Andreas

@tbosch
Copy link
Contributor

tbosch commented Jun 28, 2013

Hi,
sorry, but won't have time until next week to look at this...

Tobias

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants