Permalink
Browse files

JSON test should check for equality

`assert()` by itself only looks to see that the first argument is a
value of some kind.

--Tim Shadel <github@timshadel.com>
  • Loading branch information...
1 parent adc9ab1 commit 1232a8e46752619d4d4b51d558e6725faf7bf3aa @timshadel timshadel committed Jun 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/test-toJSON.js
View
@@ -8,7 +8,7 @@ var s = http.createServer(function (req, resp) {
resp.end('asdf')
}).listen(8080, function () {
var r = request('http://localhost:8080', function (e, resp) {
- assert(JSON.parse(JSON.stringify(r)).response.statusCode, 200)
+ assert.equal(JSON.parse(JSON.stringify(r)).response.statusCode, 200)
s.close()
})
})

0 comments on commit 1232a8e

Please sign in to comment.