How to use the angular-unit-test-helper.addPropertyAsBehaviorSubject function in angular-unit-test-helper

To help you get started, we’ve selected a few angular-unit-test-helper examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github duluca / local-weather-app / src / app / current-weather / current-weather.component.nobed.spec.ts View on Github external
beforeEach(() => {
    weatherServiceMock = jasmine.createSpyObj(WeatherService.name, ['getCurrentWeather'])
    addPropertyAsBehaviorSubject(weatherServiceMock, 'currentWeather$')

    // ngrx data store must be created manually
    store = jasmine.createSpyObj('AppState Store', ['pipe'])
    store.pipe.and.returnValue(of())
  })

angular-unit-test-helper

Helper functions to help write unit tests in Angular using mocks and spies

MIT
Latest version published 11 months ago

Package Health Score

53 / 100
Full package analysis

Popular angular-unit-test-helper functions