Files
WebApp/src/app/app.spec.ts
T

16 lines
586 B
TypeScript

import { provideHttpClient } from '@angular/common/http';
import { provideHttpClientTesting } from '@angular/common/http/testing';
import { TestBed } from '@angular/core/testing';
import { provideRouter } from '@angular/router';
import { App } from './app';
describe('App', () => {
it('creates the shell', async () => {
await TestBed.configureTestingModule({
imports: [App],
providers: [provideHttpClient(), provideHttpClientTesting(), provideRouter([])],
}).compileComponents();
expect(TestBed.createComponent(App).componentInstance).toBeTruthy();
});
});