From 1d50c74cdcd41e3b4ab98d7df1579c0cdaf17887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sun, 5 Nov 2017 17:52:12 -0500 Subject: [PATCH] should error with no content --- test/controllers.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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(); + }); }); });