From 6edf02d4a54a5d10bf3839e37931d7d5a7a318a2 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 23 Apr 2020 19:57:41 -0400 Subject: [PATCH] fix: remove upload picture test (avatars) --- test/uploads.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/test/uploads.js b/test/uploads.js index ff303a20d3..cbeb72b4a9 100644 --- a/test/uploads.js +++ b/test/uploads.js @@ -71,17 +71,6 @@ describe('Upload Controllers', function () { }); }); - it('should upload a profile picture', function (done) { - helpers.uploadFile(nconf.get('url') + '/api/user/regular/uploadpicture', path.join(__dirname, '../test/files/test.png'), {}, jar, csrf_token, function (err, res, body) { - assert.ifError(err); - assert.equal(res.statusCode, 200); - assert(Array.isArray(body)); - assert.equal(body.length, 1); - assert.equal(body[0].url, '/assets/uploads/profile/' + regularUid + '-profileavatar.png'); - done(); - }); - }); - it('should upload an image to a post', function (done) { helpers.uploadFile(nconf.get('url') + '/api/post/upload', path.join(__dirname, '../test/files/test.png'), {}, jar, csrf_token, function (err, res, body) { assert.ifError(err);