Skip to content

Commit

Permalink
we dont need to check for the exact message, the status code is suffi…
Browse files Browse the repository at this point in the history
…cient (test broke because the JSON parser changed its error message)
  • Loading branch information
Manuel Ernst committed Jan 29, 2018
1 parent 6c3c4cc commit f05552d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/integration/creation.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ describe('Integration creation', function () {
.set('Content-Type', 'application/json')
.send('{"name": }')
.expect('Content-Type', /application\/json/)
.expect(400)
.expect('{"message":"Unexpected token }"}', done);
.expect(400, done);
});
});

0 comments on commit f05552d

Please sign in to comment.