should error with no content

This commit is contained in:
Barış Soner Uşaklı
2017-11-05 17:52:12 -05:00
parent e4ea4d5134
commit 1d50c74cdc

View File

@@ -1971,7 +1971,19 @@ describe('Controllers', function () {
}, function (err, res, body) {
assert.ifError(err);
assert.equal(res.statusCode, 400);
done();
request.post(nconf.get('url') + '/compose', {
form: {
tid: tid,
},
jar: jar,
headers: {
'x-csrf-token': csrf_token,
},
}, function (err, res, body) {
assert.ifError(err);
assert.equal(res.statusCode, 400);
done();
});
});
});