Skip to content
Snippets Groups Projects
Commit 08640edc authored by Jan Zickermann's avatar Jan Zickermann
Browse files

OZG-4948 Fix postfach-form test

parent ce643164
No related branches found
No related tags found
No related merge requests found
...@@ -8,10 +8,8 @@ import { ...@@ -8,10 +8,8 @@ import {
getElementFromFixture, getElementFromFixture,
} from '@alfa-client/test-utils'; } from '@alfa-client/test-utils';
import { PostfachFormService } from './postfach.formservice'; import { PostfachFormService } from './postfach.formservice';
import { MockComponent, MockService } from 'ng-mocks'; import { MockComponent } from 'ng-mocks';
import { TextFieldComponent } from '../../../shared/text-field/text-field.component'; import { TextFieldComponent } from '../../../shared/text-field/text-field.component';
import { PostfachServiceToken } from '../../../admin-settings-provider';
import { PostfachService } from '@alfa-client/postfach-shared';
describe('PostfachFormComponent', () => { describe('PostfachFormComponent', () => {
let component: PostfachFormComponent; let component: PostfachFormComponent;
...@@ -24,12 +22,6 @@ describe('PostfachFormComponent', () => { ...@@ -24,12 +22,6 @@ describe('PostfachFormComponent', () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
declarations: [PostfachFormComponent, MockComponent(TextFieldComponent)], declarations: [PostfachFormComponent, MockComponent(TextFieldComponent)],
imports: [ReactiveFormsModule, FormsModule], imports: [ReactiveFormsModule, FormsModule],
providers: [
{
provide: PostfachServiceToken,
useValue: MockService(PostfachService),
},
],
}).compileComponents(); }).compileComponents();
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment