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

E2E backend testing with angular mocks #25

@a-hahn

Description

@a-hahn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions