From 5d45f9fff26e8e4da33dbe60878c8b686d93ec34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 23 Oct 2017 19:09:44 -0400 Subject: [PATCH] fix lint --- test/uploads.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/uploads.js b/test/uploads.js index 4133fdf9ab..5ae8f740c2 100644 --- a/test/uploads.js +++ b/test/uploads.js @@ -79,8 +79,9 @@ describe('Upload Controllers', function () { it('should fail to upload an image to a post with invalid cid', function (done) { helpers.uploadFile(nconf.get('url') + '/api/post/upload', path.join(__dirname, '../test/files/test.png'), { cid: '0' }, jar, csrf_token, function (err, res, body) { + assert.ifError(err); assert.equal(res.statusCode, 500); - assert.equal(body.error, '[[error:category-not-selected]]') + assert.equal(body.error, '[[error:category-not-selected]]'); done(); }); });