From 326cbf0d3436718af0a76fbe051ec8a5178b9869 Mon Sep 17 00:00:00 2001 From: Naz Date: Mon, 5 Apr 2021 16:29:07 +1200 Subject: [PATCH] Fixed test missing a whitespace refs https://github.com/TryGhost/Team/issues/597 refs https://github.com/TryGhost/Utils/commit/a1962f38cdad5bb25bbf391ac1ddd5b129146c06 --- ghost/limit-service/lib/limit-service.js | 2 +- ghost/limit-service/test/limit-service.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.`); } });