From 828032148cc6ac8d5c2f7d9757b0cefd8afd6b5d Mon Sep 17 00:00:00 2001 From: Humberto Morera Date: Mon, 30 Sep 2024 11:00:43 -0600 Subject: [PATCH] implementation (Edit Content) tests fix --- .../dot-edit-content-aside.component.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core-web/libs/edit-content/src/lib/components/dot-edit-content-aside/dot-edit-content-aside.component.spec.ts b/core-web/libs/edit-content/src/lib/components/dot-edit-content-aside/dot-edit-content-aside.component.spec.ts index 25146bf70c2c..d77fdf556870 100644 --- a/core-web/libs/edit-content/src/lib/components/dot-edit-content-aside/dot-edit-content-aside.component.spec.ts +++ b/core-web/libs/edit-content/src/lib/components/dot-edit-content-aside/dot-edit-content-aside.component.spec.ts @@ -3,6 +3,8 @@ import { MockComponent } from 'ng-mocks'; import { HttpClientTestingModule } from '@angular/common/http/testing'; +import { TabViewModule } from 'primeng/tabview'; + import { DotMessageService } from '@dotcms/data-access'; import { MockDotMessageService, dotcmsContentTypeBasicMock } from '@dotcms/utils-testing'; @@ -10,7 +12,7 @@ import { DotContentAsideInformationComponent } from './components/dot-content-as import { DotContentAsideWorkflowComponent } from './components/dot-content-aside-workflow/dot-content-aside-workflow.component'; import { DotEditContentAsideComponent } from './dot-edit-content-aside.component'; -import { CONTENT_FORM_DATA_MOCK } from '../../utils/mocks'; +import { CONTENT_FORM_DATA_MOCK, MockResizeObserver } from '../../utils/mocks'; describe('DotEditContentAsideComponent', () => { let spectator: Spectator; @@ -36,6 +38,9 @@ describe('DotEditContentAsideComponent', () => { } ] }); + beforeAll(() => { + window.ResizeObserver = MockResizeObserver; + }); beforeEach(() => { spectator = createComponent({