Skip to content

Commit

Permalink
fix(block-editor) fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
oidacra committed Dec 6, 2023
1 parent cdf6cad commit 5db1a36
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { byTestId, createComponentFactory, mockProvider, Spectator } from '@ngneat/spectator/jest';
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 { DotMessageService } from '@dotcms/data-access';
import { DotMessagePipe } from '@dotcms/ui';

import { DotEditContentFormComponent } from './dot-edit-content-form.component';

Expand All @@ -18,9 +18,8 @@ import { DotEditContentFieldComponent } from '../dot-edit-content-field/dot-edit
describe('DotFormComponent', () => {
let spectator: Spectator<DotEditContentFormComponent>;
const createComponent = createComponentFactory({
imports: [HttpClientTestingModule],
component: DotEditContentFormComponent,
providers: [mockProvider(DotMessageService)]
imports: [MockPipe(DotMessagePipe)],
component: DotEditContentFormComponent
});

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

0 comments on commit 5db1a36

Please sign in to comment.