沈斌
2018-07-10 fec630978ad9b1ce5caff7dbc74e7d10d43a0970
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { TestBed, TestModuleMetadata } from '@angular/core/testing';
import { setUpTestBed } from '@testing/common.spec';
 
import { GuardComponent } from './guard.component';
 
describe('Comoponent: Guard', () => {
  setUpTestBed(<TestModuleMetadata>{
    declarations: [GuardComponent],
    providers: [],
  });
 
  it('should create an instance', () => {
    const fixture = TestBed.createComponent(GuardComponent);
    const comp = fixture.debugElement.componentInstance;
    expect(comp).toBeTruthy();
  });
});