Advertisement
Guest User

ANGULAR TEST UNITAIRE

a guest
Jul 12th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  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. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement