We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c05435 commit ffc23a4Copy full SHA for ffc23a4
spec/index.spec.js
@@ -469,6 +469,13 @@ describe('server', () => {
469
});
470
471
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
+
479
it('fails if maxLimit is negative', done => {
480
reconfigureServer({ maxLimit: -100 }).catch(error => {
481
expect(error).toEqual('Max limit must be a value greater than 0.');
0 commit comments