We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I created new project from here https://github.com/driftyco/ionic-starter-super and followed the instructions in the blog http://lathonez.github.io/2016/ionic-2-unit-testing/ to enable unit testing. The problem is that the test fails because there is an error in ionic slider - see attached _this.slider is undefined. Not sure why this is happening
The source code can be found at https://[email protected]/bossgit/boss811.mobile.git in master branch
The text was updated successfully, but these errors were encountered:
Adding fixture.detectChanges() line into test.ts fixed the problem. Here is how it looks now
public static beforeEachCompiler(components: Array<any>): Promise<{fixture: any, instance: any}> { return TestUtils.configureIonicTestingModule(components) .compileComponents().then(() => { let fixture: any = TestBed.createComponent(components[0]); fixture.detectChanges(); return { fixture: fixture, instance: fixture.debugElement.componentInstance, }; }); }
Sorry, something went wrong.
glad you sorted it
#191
No branches or pull requests
I created new project from here https://github.com/driftyco/ionic-starter-super and followed the instructions in the blog http://lathonez.github.io/2016/ionic-2-unit-testing/ to enable unit testing.
The problem is that the test fails because there is an error in ionic slider - see attached
_this.slider is undefined. Not sure why this is happening
The source code can be found at https://[email protected]/bossgit/boss811.mobile.git in master branch
The text was updated successfully, but these errors were encountered: