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