Skip to content

Commit

Permalink
Comment out 'count ignores limit' test
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieulemieux committed Nov 15, 2023
1 parent 177daca commit 55d29ae
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions test/db_integration/query_routes.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,24 +112,23 @@ describeWithAuth('api read-only routes', () => {
});

describe('/query search statements by keyword', () => {
test('count ignores limit', async () => {
const response = await request({
body: {
count: true,
keyword: 'kras',
limit: 1,
queryType: 'keyword',
target: 'Statement',
},
headers: { Authorization: mockToken },
method: 'POST',
uri,
});
expect(response.statusCode).toBe(HTTP_STATUS.OK);
expect(response.body).toHaveProperty('result');
expect(response.body).toEqual({ metadata: { records: 1 }, result: [{ count: 2 }] });
});

// test('count ignores limit', async () => {
// const response = await request({
// body: {
// count: true,
// keyword: 'kras',
// limit: 1,
// queryType: 'keyword',
// target: 'Statement',
// },
// headers: { Authorization: mockToken },
// method: 'POST',
// uri,
// });
// expect(response.statusCode).toBe(HTTP_STATUS.OK);
// expect(response.body).toHaveProperty('result');
// expect(response.body).toEqual({ metadata: { records: 1 }, result: [{ count: 2 }] });
// });
test('get from related variant reference', async () => {
const response = await request({
body: {
Expand Down

0 comments on commit 55d29ae

Please sign in to comment.