25 lines
975 B
TypeScript
25 lines
975 B
TypeScript
import { AddressComponent } from './address/address.component';
|
|
import { AddressListComponent } from './address-list/address-list.component';
|
|
import { TestBed, async } from '@angular/core/testing';
|
|
import { AppComponent } from './app.component';
|
|
import { RouterTestingModule } from '@angular/router/testing';
|
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
import { NameComponent } from './name/name.component';
|
|
import { ContactModule } from '@nested-forms/contact';
|
|
|
|
describe('AppComponent', () => {
|
|
beforeEach(async(() => {
|
|
TestBed.configureTestingModule({
|
|
imports: [RouterTestingModule, ReactiveFormsModule, ContactModule.forRoot()],
|
|
declarations: [AppComponent, NameComponent, AddressListComponent, AddressComponent]
|
|
}).compileComponents();
|
|
}));
|
|
|
|
it('should create the app', () => {
|
|
const fixture = TestBed.createComponent(AppComponent);
|
|
const app = fixture.debugElement.componentInstance;
|
|
expect(app).toBeTruthy();
|
|
});
|
|
|
|
});
|