Skip to content

Commit

Permalink
fix(block-editor) fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
oidacra committed Dec 7, 2023
1 parent 877e551 commit 8fb15ed
Showing 1 changed file with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { byTestId, createComponentFactory, Spectator } from '@ngneat/spectator/jest';
import { MockPipe } from 'ng-mocks';

import { HttpClientTestingModule } from '@angular/common/http/testing';
import { Validators } from '@angular/forms';

import { TabView } from 'primeng/tabview';

import { DotMessageService } from '@dotcms/data-access';
import { DotMessagePipe } from '@dotcms/ui';

import { DotEditContentFormComponent } from './dot-edit-content-form.component';
Expand All @@ -18,25 +20,13 @@ import {
TAB_DIVIDER_MOCK
} from '../../utils/mocks';
import { DotEditContentFieldComponent } from '../dot-edit-content-field/dot-edit-content-field.component';
import { HttpClientTestingModule } from "@angular/common/http/testing";
import { MockDotMessageService } from "@dotcms/utils-testing";
import { DotMessageService } from "@dotcms/data-access";

describe('DotFormComponent', () => {
let spectator: Spectator<DotEditContentFormComponent>;
let dotMessageService: DotMessageService;
const createComponent = createComponentFactory({
imports: [HttpClientTestingModule, MockPipe(DotMessagePipe)],
component: DotEditContentFormComponent,
providers: [
{
provide: DotMessageService,
useValue: new MockDotMessageService({
Save: 'Save',
Content: 'content'
})
}
]
component: DotEditContentFormComponent
});

describe('with data', () => {
Expand Down

0 comments on commit 8fb15ed

Please sign in to comment.