DoSomethingArchive / quicksilver-api

:postbox: API gateway to Quicksilver (Message Broker) functionality.
MIT License
0 stars 3 forks source link

Issue52 test errors #53

Closed deezone closed 8 years ago

deezone commented 8 years ago

Fixes #52

var sails = require('sails');

To Test:

$ npm test

  Requests to the root (/api) path
    ✓ GET: Returns a 200 status code (163ms)
    ✓ GET: Returns JSON format

  Requests to v1 root (/api/v1) path
    ✓ GET: Returns a 200 status code
    ✓ GET: Returns JSON format

  Requests to the root (/user/password) path with missing required body parameters.
    1) POST: Invalid password reset request with missing body parameters returns expected 422 - Unprocessable due to request validation error results.

  Requests to the root (/user/password) path
    2) POST: Valid password request with only user_id returns expected results.
    3) POST: Valid password request with only email returns expected results.
    4) POST: Valid password request with only mobile returns expected results.

  4 passing (2s)
  4 failing
sergiitk commented 8 years ago

👍