chore: fixes test expectation
This commit is contained in:
@@ -639,7 +639,7 @@ describe('collections-rest', () => {
|
||||
});
|
||||
|
||||
expect(status).toEqual(200);
|
||||
expect(result.totalDocs).toEqual(15);
|
||||
expect(result.docs).toHaveLength(15);
|
||||
});
|
||||
|
||||
it('should query all docs when limit=0', async () => {
|
||||
|
||||
@@ -155,8 +155,9 @@ export class RESTClient {
|
||||
|
||||
const slug = args?.slug || this.defaultSlug;
|
||||
const whereQuery = qs.stringify({
|
||||
...args,
|
||||
...(args?.query ? { where: args.query } : {}),
|
||||
limit: args?.limit,
|
||||
page: args?.page,
|
||||
}, {
|
||||
addQueryPrefix: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user