angular-cn/aio/src/app/app.component.spec.ts

27 lines
648 B
TypeScript
Raw Normal View History

2017-02-02 23:02:23 -08:00
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { AppModule } from './app.module';
describe('AppComponent', () => {
2017-02-02 23:02:23 -08:00
let component: AppComponent;
let fixture: ComponentFixture<AppComponent>;
2017-02-02 23:02:23 -08:00
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [ AppModule ],
providers: [
]
});
TestBed.compileComponents();
}));
2017-02-02 23:02:23 -08:00
beforeEach(() => {
fixture = TestBed.createComponent(AppComponent);
component = fixture.componentInstance;
});
2017-02-02 23:02:23 -08:00
it('should create', () => {
expect(component).toBeDefined();
});
});