src/app/tests/mocks/mock-component.ts
Mock for Response Object.
Provide mocked component can be used with a RouterTestingModule. RouterTestingModule.withRoutes([{ path: 'streams/definitions', component: MockComponent }])
Methods |
ngOnDestroy |
ngOnDestroy()
|
Defined in src/app/tests/mocks/mock-component.ts:16
|
Returns :
void
|
ngOnInit |
ngOnInit()
|
Defined in src/app/tests/mocks/mock-component.ts:13
|
Returns :
void
|
import { OnDestroy, OnInit } from '@angular/core';
/**
* Mock for Response Object.
*
* Provide mocked component can be used with a RouterTestingModule.
* RouterTestingModule.withRoutes([{ path: 'streams/definitions', component: MockComponent }])
*
* @author Glenn Renfro
*/
export class MockComponent implements OnInit, OnDestroy {
ngOnInit(): void {
}
ngOnDestroy(): void {
}
}