should error with no content

v1.18.x
Barış Soner Uşaklı 7 years ago
parent e4ea4d5134
commit 1d50c74cdc

@ -1968,12 +1968,24 @@ describe('Controllers', function () {
headers: { headers: {
'x-csrf-token': csrf_token, 'x-csrf-token': csrf_token,
}, },
}, function (err, res, body) {
assert.ifError(err);
assert.equal(res.statusCode, 400);
request.post(nconf.get('url') + '/compose', {
form: {
tid: tid,
},
jar: jar,
headers: {
'x-csrf-token': csrf_token,
},
}, function (err, res, body) { }, function (err, res, body) {
assert.ifError(err); assert.ifError(err);
assert.equal(res.statusCode, 400); assert.equal(res.statusCode, 400);
done(); done();
}); });
}); });
});
it('should create a new topic and reply by composer route', function (done) { it('should create a new topic and reply by composer route', function (done) {
var data = { var data = {

Loading…
Cancel
Save