diff --git a/ghost/limit-service/lib/limit-service.js b/ghost/limit-service/lib/limit-service.js index f56b274f74..ecc94aa3c6 100644 --- a/ghost/limit-service/lib/limit-service.js +++ b/ghost/limit-service/lib/limit-service.js @@ -18,7 +18,7 @@ class LimitService { */ loadLimits({limits, helpLink, db, errors}) { if (!errors) { - throw new Error(`Config Missing: 'errors' is required. `); + throw new Error(`Config Missing: 'errors' is required.`); } this.errors = errors; diff --git a/ghost/limit-service/test/limit-service.test.js b/ghost/limit-service/test/limit-service.test.js index 8db30c3fff..3df84659bb 100644 --- a/ghost/limit-service/test/limit-service.test.js +++ b/ghost/limit-service/test/limit-service.test.js @@ -48,7 +48,7 @@ describe('Limit Service', function () { should.fail(limitService, 'Should have errored'); } catch (err) { should.exist(err); - err.message.should.equal(`Config Missing: 'errors' is required`); + err.message.should.eql(`Config Missing: 'errors' is required.`); } });