Skip to content

Commit

Permalink
Merge pull request #82 from contentstack/fix/DX-1776
Browse files Browse the repository at this point in the history
test: fix test case
  • Loading branch information
nadeem-cs authored Nov 15, 2024
2 parents 19bae29 + 269a479 commit d316b36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/unit/query.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { HOST_URL } from '../utils/constant';
import { Query } from '../../src/lib/query';
import { QueryOperation, QueryOperator } from '../../src/lib/types';
import { entryFindMock } from '../utils/mocks';
import { Entries } from '../../src/lib/entries';

describe('Query class', () => {
let client: AxiosInstance;
Expand Down Expand Up @@ -90,7 +91,7 @@ describe('Query class', () => {
});

function getQueryObject(client: AxiosInstance, uid: string, queryObj?: { [key: string]: any }) {
if (queryObj) return new Query(client, {}, {}, uid, queryObj);
if (queryObj) return new Query(client, {}, {}, '', uid, queryObj);

return new Query(client, {}, {}, uid);
return new Query(client, {}, {}, '', uid);
}

0 comments on commit d316b36

Please sign in to comment.