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

Problem with DeviceMock

Open Ritzlgrmft opened this issue 6 years ago • 1 comments

At least with Ionic 4.x and @ionic-native 5.x, the DeviceMock implementation with plain variables like

cordova: string;

does not work. There gets called always the original implementation.

But the following works for me:

get cordova(): string {
	return "";
}

I assume this happens since the properties are originally marked with the decorator @CordovaProperty...

Ritzlgrmft avatar May 03 '19 18:05 Ritzlgrmft

+1 _super.apply is not a function

blahblehblah avatar Apr 01 '20 18:04 blahblehblah