0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Fixed test missing a whitespace

refs https://github.com/TryGhost/Team/issues/597
refs a1962f38cd
This commit is contained in:
Naz 2021-04-05 16:29:07 +12:00
parent fd61555763
commit 326cbf0d34
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ class LimitService {
*/ */
loadLimits({limits, helpLink, db, errors}) { loadLimits({limits, helpLink, db, errors}) {
if (!errors) { if (!errors) {
throw new Error(`Config Missing: 'errors' is required. `); throw new Error(`Config Missing: 'errors' is required.`);
} }
this.errors = errors; this.errors = errors;

View file

@ -48,7 +48,7 @@ describe('Limit Service', function () {
should.fail(limitService, 'Should have errored'); should.fail(limitService, 'Should have errored');
} catch (err) { } catch (err) {
should.exist(err); should.exist(err);
err.message.should.equal(`Config Missing: 'errors' is required`); err.message.should.eql(`Config Missing: 'errors' is required.`);
} }
}); });