From 7c4107b3a7d6a8a4da4f813d8a5172d9a8eea4ab Mon Sep 17 00:00:00 2001 From: Mykyta Maliarchuk Date: Fri, 14 Jun 2024 11:07:23 +0200 Subject: [PATCH] [ACS-8001] fix test --- .../content-metadata/content-metadata.component.spec.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.spec.ts b/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.spec.ts index b32371e7b72..1634d4c4ade 100644 --- a/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.spec.ts +++ b/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.spec.ts @@ -819,8 +819,6 @@ describe('ContentMetadataComponent', () => { }); it('should hide card views group when the grouped properties are empty', async () => { - getGroupedPropertiesSpy.and.stub(); - component.ngOnChanges({ node: new SimpleChange(node, expectedNode, false) }); fixture.detectChanges(); @@ -832,8 +830,6 @@ describe('ContentMetadataComponent', () => { it('should display card views group when there is at least one property that is not empty', async () => { component.expanded = true; - getGroupedPropertiesSpy.and.stub(); - component.ngOnChanges({ node: new SimpleChange(node, expectedNode, false) }); fixture.detectChanges(); @@ -1022,6 +1018,7 @@ describe('ContentMetadataComponent', () => { component.expanded = true; component.preset = 'default'; getGroupedPropertiesSpy.and.callThrough(); + getBasicPropertiesSpy.and.callThrough(); }); it('should show Versionable with given content-metadata config', async () => {