Skip to content

README details for integration test setup are out-of-date #13

@kindjar

Description

@kindjar

The docs currently suggest setting up a mapping like this:

var mapping = {
  '/people': {
    status: 201,
    body: { email: 'foo@example.com' }
  }
};

But the test server looks up mapping entries using the HTTP method plus the url path:

var mapped = mapping[request.method + " " + request.url];

The require path for the test server also appears to be wrong.

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