You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting server in test mode
initializing routes
restify listing at http://0.0.0.0:8989
···✗✗✗✗
When posting an invalid worm is should 400 A POST to /worms/worms
✗ should respond with 400
» expected 400,
got 404 (==) // api-easy.js:290
✗ should have a proper 400 error body
»
actual expected
InvalidObjResourceNotFound
// server.coffee:33
When posting a valid worm it should save correctly A POST to /worms
✗ should respond with 200
» expected 200,
got 404 (==) // api-easy.js:290
✗ should have a proper post body
»
actual expected
SResourccessNotFound
// server.coffee:41
✗ Broken » 3 honored ∙ 4 broken (0.030s)
In the first instance the "InvalidObjResourceNotFound" I'm expecting a space between 'InvalidObj' and 'ResourceNotFound' also for some reason the first e, c, and t in 'ResourceNotFound' are black instead of Red.
In the second instance I have to assertions in the same callback and it looks like it's printing both failures on the same line and blending the characters, leading to gibberish and christmas colors (red, black and green all blended and crazy).
The tests producing strange output (written in coffeesript):
.expect('should have a proper 400 error body', (err, res, body) ->body=JSON.parse body
assert.equalbody.code, 'InvalidObject'
)
.expect('should have a proper post body', (err, res, body) ->body=JSON.parse body
assert.equalbody.code, 'Success'assert.equalbody.location, '/worms/1'#first worm posted
)
The text was updated successfully, but these errors were encountered:
In the first instance the "InvalidObjResourceNotFound" I'm expecting a space between 'InvalidObj' and 'ResourceNotFound' also for some reason the first e, c, and t in 'ResourceNotFound' are black instead of Red.
In the second instance I have to assertions in the same callback and it looks like it's printing both failures on the same line and blending the characters, leading to gibberish and christmas colors (red, black and green all blended and crazy).
The tests producing strange output (written in coffeesript):
The text was updated successfully, but these errors were encountered: