Skip to content

Commit

Permalink
implementation (Edit Content) tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hmoreras committed Sep 30, 2024
1 parent 1cdd794 commit 8280321
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ 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';

import { DotContentAsideInformationComponent } from './components/dot-content-aside-information/dot-content-aside-information.component';
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<DotEditContentAsideComponent>;
Expand All @@ -36,6 +38,9 @@ describe('DotEditContentAsideComponent', () => {
}
]
});
beforeAll(() => {
window.ResizeObserver = MockResizeObserver;
});

beforeEach(() => {
spectator = createComponent({
Expand Down

0 comments on commit 8280321

Please sign in to comment.