Skip to content

Commit 0a031d9

Browse files
committed
add test component
1 parent 97ec05f commit 0a031d9

5 files changed

Lines changed: 41 additions & 0 deletions

File tree

src/app/app.routes.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ export const routes: Routes = [
4040
loadComponent: () =>
4141
import('./features/help-dashboard/help-dashboard')
4242
.then(m => m.HelpDashboard),
43+
},
44+
{
45+
path: 'test',
46+
loadComponent: () =>
47+
import('./component/test/test.component')
48+
.then(m => m.TestComponent),
4349
},
4450
{ path: '**', redirectTo: '' }
4551
];

src/app/component/test/test.component.css

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>test works!</p>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { TestComponent } from './test.component';
4+
5+
describe('TestComponent', () => {
6+
let component: TestComponent;
7+
let fixture: ComponentFixture<TestComponent>;
8+
9+
beforeEach(async () => {
10+
await TestBed.configureTestingModule({
11+
imports: [TestComponent]
12+
})
13+
.compileComponents();
14+
15+
fixture = TestBed.createComponent(TestComponent);
16+
component = fixture.componentInstance;
17+
fixture.detectChanges();
18+
});
19+
20+
it('should create', () => {
21+
expect(component).toBeTruthy();
22+
});
23+
});
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-test',
5+
imports: [],
6+
templateUrl: './test.component.html',
7+
styleUrl: './test.component.css'
8+
})
9+
export class TestComponent {
10+
11+
}

0 commit comments

Comments
 (0)