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:
parent
572a8bb423
commit
e4a1baa4a3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue