Skip to content

Commit

Permalink
Merge pull request #465 from makeco/update-doc-testing
Browse files Browse the repository at this point in the history
update documentation
  • Loading branch information
delvedor committed Nov 14, 2017
2 parents 6b4b69a + de4394c commit 261277e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ test('GET `/` route', t => {
url: '/'
}, res => {
t.strictEqual(res.statusCode, 200)
t.strictEqual(res.headers['content-length'], '' + body.length)
t.strictEqual(res.headers['content-length'], res.payload.length)
t.deepEqual(JSON.parse(res.payload), { hello: 'world' })
// even if the server is not running (inject does not run the server)
// at the end of your tests is highly recommended call `.close()`,
Expand Down

0 comments on commit 261277e

Please sign in to comment.