Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

MockHttpBackend must check the request method when matching expectations #1417

Open
@vsavkin

Description

@vsavkin

The following code works:

hb.expectPOST("/match").respond(200, 'blah');
hb('GET', '/match', callback);
hb.flush();
expect(callback).toHaveBeenCalled();

But it should throw "Unexpected GET /match'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions