daily pastebin goal
53%
SHARE
TWEET

ANGULAR TEST UNITAIRE

a guest Jul 12th, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { async, ComponentFixture, TestBed } from '@angular/core/testing';
  2.  
  3. import { HomeComponent } from './home.component';
  4.  
  5. describe('HomeComponent', () => {
  6.   let component: HomeComponent;
  7.   let fixture: ComponentFixture<HomeComponent>;
  8.  
  9.   beforeEach(async(() => {
  10.     TestBed.configureTestingModule({
  11.       declarations: [ HomeComponent ]
  12.     })
  13.     .compileComponents();
  14.   }));
  15.  
  16.   beforeEach(() => {
  17.     fixture = TestBed.createComponent(HomeComponent);
  18.     component = fixture.componentInstance;
  19.     fixture.detectChanges();
  20.   });
  21.  
  22.   it('should create', () => {
  23.     expect(component).toBeTruthy();
  24.   });
  25. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top