diff --git a/support-portal-frontend/src/app/app.component.html b/support-portal-frontend/src/app/app.component.html
index 2b60ccf..6a164d6 100644
--- a/support-portal-frontend/src/app/app.component.html
+++ b/support-portal-frontend/src/app/app.component.html
@@ -1,500 +1,2 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ title }} app is running!
-
-
-
-
-
-
-
Resources
-
Here are some links to help you get started:
-
-
-
-
-
Next Steps
-
What do you want to do next with your app?
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
ng generate component xyz
-
ng add @angular/material
-
ng add @angular/pwa
-
ng add _____
-
ng test
-
ng build
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/support-portal-frontend/src/app/app.component.spec.ts b/support-portal-frontend/src/app/app.component.spec.ts
index 1cdc277..84527ff 100644
--- a/support-portal-frontend/src/app/app.component.spec.ts
+++ b/support-portal-frontend/src/app/app.component.spec.ts
@@ -1,9 +1,13 @@
import {TestBed} from '@angular/core/testing';
import {AppComponent} from './app.component';
+import {RouterTestingModule} from "@angular/router/testing";
+import {By} from "@angular/platform-browser";
+import {RouterOutlet} from "@angular/router";
describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
+ imports: [RouterTestingModule.withRoutes([])],
declarations: [
AppComponent
],
@@ -22,10 +26,11 @@ describe('AppComponent', () => {
expect(app.title).toEqual('support-portal-frontend');
});
- it('should render title', () => {
+ it('should have a router outlet', () => {
const fixture = TestBed.createComponent(AppComponent);
- fixture.detectChanges();
- const compiled = fixture.nativeElement as HTMLElement;
- expect(compiled.querySelector('.content span')?.textContent).toContain('support-portal-frontend app is running!');
+
+ let debugElement = fixture.debugElement.query(By.directive(RouterOutlet));
+ expect(debugElement).not.toBeNull();
});
+
});