From bf3c1c0878cba8fc6709a0bd9dbdf94b6f1f4d02 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Mon, 28 Sep 2020 20:55:53 -0400 Subject: [PATCH] fix: manifest test + remove duplicate test --- test/controllers.js | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/test/controllers.js b/test/controllers.js index 73f710d27339..8636b7844d6b 100644 --- a/test/controllers.js +++ b/test/controllers.js @@ -359,8 +359,8 @@ describe('Controllers', function () { }); }); - it('should load /manifest.json', function (done) { - request(nconf.get('url') + '/manifest.json', function (err, res, body) { + it('should load /manifest.webmanifest', function (done) { + request(nconf.get('url') + '/manifest.webmanifest', function (err, res, body) { assert.ifError(err); assert.equal(res.statusCode, 200); assert(body); @@ -633,15 +633,6 @@ describe('Controllers', function () { }); }); - it('should load manifest.json', function (done) { - request(nconf.get('url') + '/manifest.json', function (err, res, body) { - assert.ifError(err); - assert.equal(res.statusCode, 200); - assert(body); - done(); - }); - }); - it('should load theme screenshot', function (done) { request(nconf.get('url') + '/css/previews/nodebb-theme-persona', function (err, res, body) { assert.ifError(err); @@ -1413,7 +1404,7 @@ describe('Controllers', function () { }); it('should not increase profile view if a guest visits a profile', (done) => { - request(nconf.get('url') + '/api/user/foo', { }, function (err, res) { + request(nconf.get('url') + '/api/user/foo', {}, function (err, res) { assert.ifError(err); assert.equal(res.statusCode, 200); setTimeout(function () { @@ -1751,7 +1742,7 @@ describe('Controllers', function () { }, }); - request(nconf.get('url') + '/users', { }, function (err, res) { + request(nconf.get('url') + '/users', {}, function (err, res) { plugins.loadedHooks['filter:router.page'] = []; assert.ifError(err); assert.equal(res.statusCode, 403); @@ -1769,7 +1760,7 @@ describe('Controllers', function () { }, }); - request(nconf.get('url') + '/users', { }, function (err, res, body) { + request(nconf.get('url') + '/users', {}, function (err, res, body) { plugins.loadedHooks['filter:router.page'] = []; assert.ifError(err); assert.equal(res.statusCode, 403); @@ -1790,7 +1781,7 @@ describe('Controllers', function () { }, }); - request(nconf.get('url') + '/users', { }, function (err, res, body) { + request(nconf.get('url') + '/users', {}, function (err, res, body) { assert.ifError(err); assert.equal(res.statusCode, 200); assert(body);