Skip to content

Commit

Permalink
tests: use supertest expect to test body
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Jan 17, 2018
1 parent c6f12a8 commit f8fba68
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/acceptance/error-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ describe('error-pages', function(){
request(app)
.get('/404')
.set('Accept','application/json')
.end(function(err, res){
res.body.should.eql({ error: 'Not found' });
done()
})
.expect(404, { error: 'Not found' }, done)
})
})

Expand Down

0 comments on commit f8fba68

Please sign in to comment.