16 lines
506 B
TypeScript
16 lines
506 B
TypeScript
import { provideRouter } from '@angular/router';
|
|
import { render, screen } from '@testing-library/angular';
|
|
import { App } from './app';
|
|
|
|
describe('App', () => {
|
|
it('renders the router outlet shell', async () => {
|
|
const { container } = await render(App, {
|
|
providers: [provideRouter([])],
|
|
});
|
|
|
|
// The shell is a thin host for routed pages (the CatalogusPage owns the heading).
|
|
expect(container.querySelector('router-outlet')).toBeTruthy();
|
|
expect(screen).toBeTruthy();
|
|
});
|
|
});
|