Skip to content

Commit

Permalink
Merge pull request #561 from fullstackmommy/assert-content-type-in-re…
Browse files Browse the repository at this point in the history
…adme

Correction in example snippets
  • Loading branch information
rimiti committed Mar 15, 2019
2 parents 715d9a9 + a8262f6 commit 436643c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -111,6 +111,7 @@ describe('POST /users', function() {
.post('/users')
.send({name: 'john'})
.set('Accept', 'application/json')
.expect('Content-Type', /json/)
.expect(200)
.end(function(err, res) {
if (err) return done(err);
Expand All @@ -128,6 +129,7 @@ describe('GET /users', function() {
return request(app)
.get('/users')
.set('Accept', 'application/json')
.expect('Content-Type', /json/)
.expect(200)
.then(response => {
assert(response.body.email, 'foo@bar.com')
Expand Down

0 comments on commit 436643c

Please sign in to comment.