Ошибка получения 400 в качестве кода состояния при выполнении XML запроса от для супертестового примера
describe('Create Form For User', function () {
this.timeout(0);
context('Create Form For User', function () {
it('respond with a status 200', function (done) {
request(App)
.post('/form/create')
.send(form_create_body) //this is XML variable set
.set('Accept', 'application/xml')
.expect('Content-Type', /xml/)
.expect(200).end(function (err, result) {
if (err)
return done(err);
done();
});
})
});
})