File

src/app/tests/mocks/mock-component.ts

Description

Mock for Response Object.

Provide mocked component can be used with a RouterTestingModule. RouterTestingModule.withRoutes([{ path: 'streams/definitions', component: MockComponent }])

Implements

OnInit OnDestroy

Example

Index

Methods

Methods

ngOnDestroy
ngOnDestroy()
Returns : void
ngOnInit
ngOnInit()
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 {
  }
}

results matching ""

    No results matching ""