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.

Change assertion apis for http backend to define the assertion on flush #900

Closed
@IgorMinar

Description

@IgorMinar

instead of

backend.expectGET('/foo').respond('some response');
// do stuff
backend.flush()

do

// do stuff
backend.flushGET('/foo', 'some response')

Benefits:

  • makes tests much easier to follow
  • reduces the amount of code developer needs to write
  • gives control over the order in which requests should be flushed

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