File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -416,7 +416,8 @@ describe('getEntries via client chain modifiers', () => {
416
416
'sys.id' : entryWithResolvableLink ,
417
417
} )
418
418
419
- assertLocalizedEntriesResponse ( response )
419
+ const conceptsIncludedInMetadata = true
420
+ assertLocalizedEntriesResponse ( response , conceptsIncludedInMetadata )
420
421
expect ( response ?. sys ?. contentSourceMapsLookup ) . toBeDefined ( )
421
422
} )
422
423
@@ -496,7 +497,7 @@ describe('getEntries via client chain modifiers', () => {
496
497
} )
497
498
498
499
// Assertion helpers
499
- function assertLocalizedEntriesResponse ( response ) {
500
+ function assertLocalizedEntriesResponse ( response , conceptsIncludedInMetadata = false ) {
500
501
expect ( response . includes ) . toBeDefined ( )
501
502
expect ( response . includes ! . Asset ) . toBeDefined ( )
502
503
expect ( Object . keys ( response . includes ! . Asset ! ) . length ) . toBeGreaterThan ( 0 )
@@ -507,7 +508,7 @@ function assertLocalizedEntriesResponse(response) {
507
508
expect ( entry . fields . bestFriend [ 'en-US' ] . sys . type ) . toBe ( 'Entry' )
508
509
expect ( entry . metadata ) . toEqual ( {
509
510
tags : [ ] ,
510
- concepts : [ ] ,
511
+ ... ( conceptsIncludedInMetadata && { concepts : [ ] } ) ,
511
512
} )
512
513
}
513
514
You can’t perform that action at this time.
0 commit comments