Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with DeviceMock #30

Open
Ritzlgrmft opened this issue May 3, 2019 · 1 comment
Open

Problem with DeviceMock #30

Ritzlgrmft opened this issue May 3, 2019 · 1 comment

Comments

@Ritzlgrmft
Copy link

Ritzlgrmft commented May 3, 2019

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...

@blahblehblah
Copy link

+1 _super.apply is not a function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants