ionic-mocks icon indicating copy to clipboard operation
ionic-mocks copied to clipboard

Simple test doubles for Ionic 2+ using Jasmine Spy Objects

Results 33 ionic-mocks issues
Sort by recently updated
recently updated
newest added

Even tho the code suggests it would use "wifi" as default if not set.

Like the title says: there is a spy for platform.resume, but there is no implementation. Perhaps a solution would be to use return value an return an Observable?

enhancement

Not completely sure how this would work. Instantiate a spy and check the member exists and returns the right type, should be simple enough. Would be nice to reference Ionic...

enhancement

Hello, I'm trying to use MenuControllerMock like so in my component test: ```javascript import {MenuControllerMock} from 'ionic-mocks'; providers: [{provide: MenuController, useFactory: () => MenuControllerMock.instance()}] ``` I get this error in...

Hey I'm working on getting tests up and running for a service that I wrote that uses the App in the constructor. ``` constructor(public appCtrl: App) { this.appCtrl.viewDidLeave.subscribe(view => {...

This project was initially meant to ease some of the tedium across projects but now that it's gaining a modicum of traction I'm regretting some of the early decisions. I'd...

enhancement
help wanted
question

This is some great stuff! However we have recently migrated from Karma to Jest and Jest does not expose the `createSpyObj` method of Jasmine. As such, I've had to "copy"...

enhancement

I don't know if spying on the property of a spyObject poses an issue but it should be possible. https://github.com/jasmine/jasmine/blob/7f8f2b5e7a7af70d7f6b629331eb6fe0a7cb9279/src/core/requireInterface.js#L199 https://stackoverflow.com/questions/20879990/how-to-spyon-a-value-property-rather-than-a-method-with-jasmine

enhancement
help wanted

Bumps [qs](https://github.com/ljharb/qs) from 6.4.0 to 6.4.1. Changelog Sourced from qs's changelog. 6.4.1 [Fix] parse: ignore __proto__ keys (#428) [Fix] fix for an impossible situation: when the formatter is called with...

dependencies