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 2de0300 commit 731c005Copy full SHA for 731c005
spec/RestQuery.spec.js
@@ -154,4 +154,33 @@ describe('rest query', () => {
154
});
155
156
157
+ it('query with limit = 0', (done) => {
158
+ rest.create(config, nobody, 'TestObject', {foo: 'baz'}
159
+ ).then(() => {
160
+ return rest.create(config, nobody,
161
+ 'TestObject', {foo: 'qux'});
162
+ }).then(() => {
163
+ return rest.find(config, nobody,
164
+ 'TestObject', {}, {limit: 0});
165
+ }).then((response) => {
166
+ expect(response.results.length).toEqual(0);
167
+ done();
168
+ });
169
170
+
171
+ it('query with limit = 0 and count = 1', (done) => {
172
173
174
175
176
177
178
+ 'TestObject', {}, {limit: 0, count: 1});
179
180
181
+ expect(response.count).toEqual(2);
182
183
184
185
186
0 commit comments