Add OutletComponent with router outlet and basic unit tests
This commit is contained in:
parent
4d2ad1034d
commit
6213f18c46
@ -0,0 +1 @@
|
||||
<router-outlet/>
|
||||
@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { OutletComponent } from './outlet.component';
|
||||
|
||||
describe('OutletComponent', () => {
|
||||
let component: OutletComponent;
|
||||
let fixture: ComponentFixture<OutletComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [OutletComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(OutletComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@ -0,0 +1,14 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {RouterOutlet} from '@angular/router';
|
||||
|
||||
@Component({
|
||||
selector: 'app-outlet',
|
||||
imports: [
|
||||
RouterOutlet
|
||||
],
|
||||
templateUrl: './outlet.component.html',
|
||||
styleUrl: './outlet.component.scss'
|
||||
})
|
||||
export class OutletComponent {
|
||||
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user