Skip to content

Commit 739c714

Browse files
changed the it statements in test cases
1 parent 69bfc82 commit 739c714

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/api/contenttype.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('ContentType API test cases', () => {
2727
});
2828
});
2929
describe('ContentType Query API test cases', () => {
30-
it('should test for contained In', async () => {
30+
it('should get entries which matches the fieldUid and values', async () => {
3131
const query = await makeContentType('contenttype_uid').Query().containedIn('title', ['value']).find<TEntry>()
3232
if (query.entries) {
3333
expect(query.entries[0]._version).toBeDefined();
@@ -37,7 +37,7 @@ describe('ContentType Query API test cases', () => {
3737
}
3838
});
3939

40-
it('should test for not Contained In', async () => {
40+
it('should get entries which does not match the fieldUid and values', async () => {
4141
const query = await makeContentType('contenttype_uid').Query().NotContainedIn('title', ['test', 'test2']).find<TEntry>()
4242
if (query.entries) {
4343
expect(query.entries[0]._version).toBeDefined();

test/unit/contenttype.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ describe('ContentType Query class', () => {
5656
beforeEach(() => {
5757
contentType = new ContentType(client, 'contentTypeUid');
5858
});
59-
it('should test for contained In', () => {
59+
it('should get entries which matches the fieldUid and values', () => {
6060
const query = contentType.Query().containedIn('fieldUID', ['value']);
6161
expect(query._queryParams).toStrictEqual({'fieldUID': {'$in': ['value']}});
6262
});
63-
it('should test for not contained In', () => {
63+
it('should get entries which does not match the fieldUid and values', () => {
6464
const query = contentType.Query().NotContainedIn('fieldUID', ['value', 'value2']);
6565
expect(query._queryParams).toStrictEqual({'fieldUID': {'$nin': ['value', 'value2']}});
6666
});

0 commit comments

Comments
 (0)