You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When testing I'm getting No provider for Form! (Item -> Form). However I can't provide for the Form because it isn't exported by Ionic. When I export myself (e.g. by hacking the relevant files in ionic-framework) - it provides for the test and works fine.
What behavior are you expecting?
I see in config/directives.d.ts that TextInput is listed under "Forms", thus I kinda expected to be able to provide just for TextInput and have it all work.
Steps to reproduce:
Try to unit test a very simple component using the TextInput directive. Sample code for the unit test:
Short description of the problem:
With reference to http://stackoverflow.com/questions/35469338/testing-ionic2-component-no-provider-for-form
As per the SO question - I'm trying to unit test a component which is using Ionic's TextInput directive.
When testing I'm getting
No provider for Form! (Item -> Form)
. However I can't provide for the Form because it isn't exported by Ionic. When I export myself (e.g. by hacking the relevant files in ionic-framework) - it provides for the test and works fine.What behavior are you expecting?
I see in
config/directives.d.ts
that TextInput is listed under "Forms", thus I kinda expected to be able to provide just for TextInput and have it all work.Steps to reproduce:
Try to unit test a very simple component using the TextInput directive. Sample code for the unit test:
Ionic Version: ionic-framework@2.0.0-beta.0
Browser & Operating System: Ubuntu / PhantomJS2 / Chrome
The text was updated successfully, but these errors were encountered: