mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
Added a test to confirm isLimited
behavior of an unkown key
no issue
This commit is contained in:
parent
666907f853
commit
8c6ec8b214
@ -126,6 +126,19 @@ describe('Limit Service', function () {
|
||||
limitService.isLimited('custom_themes').should.be.true();
|
||||
limitService.isLimited('customThemes').should.be.true();
|
||||
});
|
||||
|
||||
it('answers correctly when no limits are provided', function () {
|
||||
const limitService = new LimitService();
|
||||
|
||||
let limits = {};
|
||||
|
||||
limitService.loadLimits({limits, errors});
|
||||
|
||||
limitService.isLimited('staff').should.be.false();
|
||||
limitService.isLimited('members').should.be.false();
|
||||
limitService.isLimited('custom_themes').should.be.false();
|
||||
limitService.isLimited('customThemes').should.be.false();
|
||||
});
|
||||
});
|
||||
|
||||
describe('Custom limit count query configuration', function () {
|
||||
|
Loading…
Reference in New Issue
Block a user