icon-button.component.spec.ts raw

   1  import { ComponentFixture, TestBed } from '@angular/core/testing';
   2  
   3  import { IconButtonComponent } from './icon-button.component';
   4  
   5  describe('IconButtonComponent', () => {
   6    let component: IconButtonComponent;
   7    let fixture: ComponentFixture<IconButtonComponent>;
   8  
   9    beforeEach(async () => {
  10      await TestBed.configureTestingModule({
  11        imports: [IconButtonComponent]
  12      })
  13      .compileComponents();
  14  
  15      fixture = TestBed.createComponent(IconButtonComponent);
  16      component = fixture.componentInstance;
  17      component.icon = 'settings'; // Required input
  18      fixture.detectChanges();
  19    });
  20  
  21    it('should create', () => {
  22      expect(component).toBeTruthy();
  23    });
  24  });
  25