mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
21 lines
596 B
TypeScript
21 lines
596 B
TypeScript
import { TestBed, async } from '@angular/core/testing';
|
|
|
|
import { RouterOutletStubComponent } from '../../testing/router-stubs';
|
|
import { AppComponent } from './app.component';
|
|
|
|
describe('AppComponent', () => {
|
|
beforeEach( async(() => {
|
|
TestBed.configureTestingModule({
|
|
declarations: [AppComponent, RouterOutletStubComponent]
|
|
}).compileComponents();
|
|
})
|
|
);
|
|
|
|
it('should create the app', async(() => {
|
|
const fixture = TestBed.createComponent(AppComponent);
|
|
const app = fixture.debugElement.componentInstance;
|
|
expect(app).toBeTruthy();
|
|
})
|
|
);
|
|
});
|