Skip to content

Commit ffc23a4

Browse files
committed
Additional unit test for defaultLimit value
1 parent 6c05435 commit ffc23a4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spec/index.spec.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,13 @@ describe('server', () => {
469469
});
470470
});
471471

472+
it('fails if default limit is zero', done => {
473+
reconfigureServer({ defaultLimit: 0 }).catch(error => {
474+
expect(error).toEqual('Default limit must be a value greater than 0.');
475+
done();
476+
});
477+
});
478+
472479
it('fails if maxLimit is negative', done => {
473480
reconfigureServer({ maxLimit: -100 }).catch(error => {
474481
expect(error).toEqual('Max limit must be a value greater than 0.');

0 commit comments

Comments
 (0)