Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed Assertion: Colors & Text Scrambled / Missing Spacing #41

Open
jvanalst opened this issue Oct 3, 2012 · 0 comments
Open

Failed Assertion: Colors & Text Scrambled / Missing Spacing #41

jvanalst opened this issue Oct 3, 2012 · 0 comments

Comments

@jvanalst
Copy link

jvanalst commented Oct 3, 2012

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.equal body.code, 'InvalidObject'
          )
          .expect('should have a proper post body', (err, res, body) ->
            body = JSON.parse body
            assert.equal body.code, 'Success'
            assert.equal body.location, '/worms/1' #first worm posted
          )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant