Skip to content

Commit 83ce24a

Browse files
authored
Merge pull request #83 from contentstack/development
Test case fix
2 parents 22c0244 + 8e7d143 commit 83ce24a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/unit/query.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { HOST_URL } from '../utils/constant';
44
import { Query } from '../../src/lib/query';
55
import { QueryOperation, QueryOperator } from '../../src/lib/types';
66
import { entryFindMock } from '../utils/mocks';
7+
import { Entries } from '../../src/lib/entries';
78

89
describe('Query class', () => {
910
let client: AxiosInstance;
@@ -90,7 +91,7 @@ describe('Query class', () => {
9091
});
9192

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

95-
return new Query(client, {}, {}, uid);
96+
return new Query(client, {}, {}, '', uid);
9697
}

0 commit comments

Comments
 (0)