Skip to content

Commit

Permalink
Adding better debug message on failures for GET tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeal committed Jan 30, 2011
1 parent a0348dd commit da77a0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test-body.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ for (i in tests) {
test.uri = s.url + '/' + i;
request(test, function (err, resp, body) {
if (test.expectBody) {
if (test.expectBody !== body) console.log(test.expectBody, body);
assert.ok(test.expectBody === body)
}
counter = counter - 1;
Expand Down

0 comments on commit da77a0e

Please sign in to comment.