Skip to content
Snippets Groups Projects
Commit 20e0bb0a authored by Albert Bruns's avatar Albert Bruns
Browse files

OZG-7620 fix test

parent 42c9f2e0
1 merge request!72OZG-7620-user-delete
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing';
import { OpenDialogButtonComponent } from '@ods/component';
import { DeleteIconComponent } from '@ods/system';
import { MockComponent } from 'ng-mocks';
import { AdminDeleteOpenDialogButtonComponent } from './admin-delete-open-dialog-button.component'; import { AdminDeleteOpenDialogButtonComponent } from './admin-delete-open-dialog-button.component';
describe('AdminDeleteOpenDialogButtonComponent', () => { describe('AdminDeleteOpenDialogButtonComponent', () => {
...@@ -8,9 +11,9 @@ describe('AdminDeleteOpenDialogButtonComponent', () => { ...@@ -8,9 +11,9 @@ describe('AdminDeleteOpenDialogButtonComponent', () => {
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
imports: [AdminDeleteOpenDialogButtonComponent] imports: [AdminDeleteOpenDialogButtonComponent],
}) declarations: [MockComponent(OpenDialogButtonComponent), MockComponent(DeleteIconComponent)],
.compileComponents(); }).compileComponents();
fixture = TestBed.createComponent(AdminDeleteOpenDialogButtonComponent); fixture = TestBed.createComponent(AdminDeleteOpenDialogButtonComponent);
component = fixture.componentInstance; component = fixture.componentInstance;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment