Skip to content
Snippets Groups Projects
admin-delete-open-dialog-button.component.spec.ts 992 B
Newer Older
  • Learn to ignore specific revisions
  • Albert Bruns's avatar
    Albert Bruns committed
    import { ComponentFixture, TestBed } from '@angular/core/testing';
    
    
    Albert Bruns's avatar
    Albert Bruns committed
    import { OpenDialogButtonComponent } from '@ods/component';
    import { DeleteIconComponent } from '@ods/system';
    import { MockComponent } from 'ng-mocks';
    
    Albert Bruns's avatar
    Albert Bruns committed
    import { AdminDeleteOpenDialogButtonComponent } from './admin-delete-open-dialog-button.component';
    
    describe('AdminDeleteOpenDialogButtonComponent', () => {
      let component: AdminDeleteOpenDialogButtonComponent;
      let fixture: ComponentFixture<AdminDeleteOpenDialogButtonComponent>;
    
      beforeEach(async () => {
        await TestBed.configureTestingModule({
    
    Albert Bruns's avatar
    Albert Bruns committed
          imports: [AdminDeleteOpenDialogButtonComponent],
          declarations: [MockComponent(OpenDialogButtonComponent), MockComponent(DeleteIconComponent)],
        }).compileComponents();
    
    Albert Bruns's avatar
    Albert Bruns committed
    
        fixture = TestBed.createComponent(AdminDeleteOpenDialogButtonComponent);
        component = fixture.componentInstance;
        fixture.detectChanges();
      });
    
      it('should create', () => {
        expect(component).toBeTruthy();
      });
    });