Нет описания
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

app.component.spec.ts 630B

1234567891011121314151617181920
  1. import { TestBed } from '@angular/core/testing';
  2. import { AppComponent } from './app.component';
  3. import { HttpClientTestingModule } from '@angular/common/http/testing';
  4. import { RouterTestingModule } from '@angular/router/testing';
  5. describe('AppComponent', () => {
  6. beforeEach(async () => {
  7. await TestBed.configureTestingModule({
  8. imports: [AppComponent, HttpClientTestingModule, RouterTestingModule],
  9. }).compileComponents();
  10. });
  11. it('should create the app', () => {
  12. const fixture = TestBed.createComponent(AppComponent);
  13. const app = fixture.componentInstance;
  14. expect(app).toBeTruthy();
  15. });
  16. });