Force request to send body as string, this ensures headers aren't automatically set to application/json

- strongloop/loopback#944
This commit is contained in:
Ron Edgecomb 2014-12-22 16:49:12 -05:00
parent 572a8bb423
commit e4a1baa4a3
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ describe('User', function() {
.set('Content-Type', null)
.expect('Content-Type', /json/)
.expect(400)
.send(validCredentials)
.send(JSON.stringify(validCredentials))
.end(function(err, res) {
if (err) {
return done(err);