Wednesday, September 18, 2019

the generic test the Angular-CLI makes for a component

import { async, ComponentFixture, TestBed } from '@angular/core/testing';
 
import { BunkComponent } from './bunk.component';
 
describe('BunkComponent', () => {
   let component: BunkComponent;
   let fixture: ComponentFixture<BunkComponent>;
   
   beforeEach(async(() => {
      TestBed.configureTestingModule({
         declarations: [ BunkComponent ]
      })
      .compileComponents();
   }));
   
   beforeEach(() => {
      fixture = TestBed.createComponent(BunkComponent);
      component = fixture.componentInstance;
      fixture.detectChanges();
   });
   
   it('should create', () => {
      expect(component).toBeTruthy();
   });
});

No comments:

Post a Comment