Skip to content

Commit 4386314

Browse files
feat: [GROOT-1484] Update tests
1 parent 5e0ce64 commit 4386314

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/integration/getEntries.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,8 @@ describe('getEntries via client chain modifiers', () => {
396396
'sys.id': entryWithResolvableLink,
397397
})
398398

399-
assertCSMEntriesResponse(response)
399+
const conceptsIncludedInMetadata = true
400+
assertCSMEntriesResponse(response, conceptsIncludedInMetadata)
400401
})
401402

402403
test('enforces entry.sys when query.select is defined', async () => {
@@ -510,7 +511,7 @@ function assertLocalizedEntriesResponse(response) {
510511
})
511512
}
512513

513-
function assertCSMEntriesResponse(response) {
514+
function assertCSMEntriesResponse(response, conceptsIncludedInMetadata = false) {
514515
expect(response.includes).toBeDefined()
515516
expect(response.includes!.Asset).toBeDefined()
516517
expect(Object.keys(response.includes!.Asset!).length).toBeGreaterThan(0)
@@ -522,7 +523,7 @@ function assertCSMEntriesResponse(response) {
522523

523524
expect(entry.metadata).toEqual({
524525
tags: [],
525-
concepts: [],
526+
...(conceptsIncludedInMetadata && { concepts: [] }),
526527
})
527528
expect(response.sys?.contentSourceMapsLookup).toBeDefined()
528529
}

0 commit comments

Comments
 (0)