2023-10-08 21:00:16 +00:00
|
|
|
import {TestBed} from '@angular/core/testing';
|
|
|
|
|
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
|
|
|
|
|
import {AppComponent, ReactiveFormsComponent, TemplateFormsComponent} from './app.component';
|
2021-03-02 03:06:37 +00:00
|
|
|
|
|
|
|
|
describe('AppComponent', () => {
|
2023-10-08 21:00:16 +00:00
|
|
|
beforeEach(async () => {
|
|
|
|
|
await TestBed.configureTestingModule({
|
|
|
|
|
declarations: [AppComponent, TemplateFormsComponent, ReactiveFormsComponent],
|
2024-02-28 16:45:43 +00:00
|
|
|
imports: [FormsModule, ReactiveFormsModule],
|
2023-10-08 21:00:16 +00:00
|
|
|
}).compileComponents();
|
|
|
|
|
});
|
2021-03-02 03:06:37 +00:00
|
|
|
|
|
|
|
|
it('should create the app', () => {
|
|
|
|
|
const fixture = TestBed.createComponent(AppComponent);
|
|
|
|
|
const app = fixture.componentInstance;
|
|
|
|
|
expect(app).toBeTruthy();
|
|
|
|
|
});
|
|
|
|
|
});
|