fengxiang
2018-07-11 12b04f145bae740e1971036b1e2dfc1bc224d17b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { TestBed, TestModuleMetadata } from '@angular/core/testing';
import { setUpTestBed } from '@testing/common.spec';
 
import { TypographyComponent } from './typography.component';
import { ColorService } from '../color.service';
 
describe('Component: Typography', () => {
  setUpTestBed(<TestModuleMetadata>{
    declarations: [TypographyComponent],
    providers: [ColorService],
  });
 
  it('should create an instance', () => {
    const fixture = TestBed.createComponent(TypographyComponent);
    const comp = fixture.debugElement.componentInstance;
    expect(comp).toBeTruthy();
  });
});