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}) {
if (!errors) {
throw new Error(`Config Missing: 'errors' is required. `);
throw new Error(`Config Missing: 'errors' is required.`);
}
this.errors = errors;

View File

@ -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.`);
}
});