Skip to content

Node.js based forum software built for the modern web

should error with no content

Barış Soner Uşaklı1d50c74cdcd4
diff --git a/test/controllers.js b/test/controllers.js
index 6aa5f482c1..a0c4eba1dc 100644
--- a/test/controllers.js
+++ b/test/controllers.js
@@ -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();
+ });
});
});