22 lines
768 B
JavaScript
22 lines
768 B
JavaScript
"use strict";
|
|
var testing_1 = require('@angular/core/testing');
|
|
var testing_2 = require('@angular/router/testing');
|
|
var app_component_1 = require('./app.component');
|
|
describe('AppComponent', function () {
|
|
beforeEach(testing_1.async(function () {
|
|
testing_1.TestBed.configureTestingModule({
|
|
imports: [
|
|
testing_2.RouterTestingModule
|
|
],
|
|
declarations: [
|
|
app_component_1.AppComponent
|
|
],
|
|
}).compileComponents();
|
|
}));
|
|
it('should create the app', testing_1.async(function () {
|
|
var fixture = testing_1.TestBed.createComponent(app_component_1.AppComponent);
|
|
var app = fixture.debugElement.componentInstance;
|
|
expect(app).toBeTruthy();
|
|
}));
|
|
});
|