Skip to content

Commit

Permalink
changes tests to run assertions on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
seanstrom committed May 9, 2015
1 parent 6e20a9f commit e90fe72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test-body.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ function addTest(name, data) {
t.equal(err, null)
if (data.expectBody && Buffer.isBuffer(data.expectBody)) {
t.deepEqual(data.expectBody.toString(), body.toString())
} else if (data.expectBody) {
t.deepEqual(data.expectBody, body)
} else {
// not sure what to test when we dont have expectBody
console.log('untested code')
}
t.end()
})
Expand Down

0 comments on commit e90fe72

Please sign in to comment.