Skip to content

angular-mocks respond in IRequestHandler should return IRequestHandler #4300

Closed

Description

@blbigelow

I am building out my tests in typescript and I'm getting a compile error trying to apply this:

var authRequestHandsler : angular.mock.IRequestHandler;

authRequestHandler = $httpBackend.whenPOST('/login').respond({message: 'user authenticated'});

In the docs for $httpBackend its shows that "respond" shouldn't just return void: https://docs.angularjs.org/api/ngMock/service/$httpBackend

Activity

  1. vvakame commented on May 11, 2015

    @vvakame
    Member

    @blbigelow please send a pull request. I'll review it.

  2. begincalendar commented on Jul 13, 2017

    @begincalendar
    Contributor

    Should this issue be closed (as it seems to be resolved)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions