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

modal-select tests: help wanted! #26

Open
bianchimro opened this issue Jan 18, 2016 · 0 comments
Open

modal-select tests: help wanted! #26

bianchimro opened this issue Jan 18, 2016 · 0 comments

Comments

@bianchimro
Copy link
Member

The situation about tests is the following:

  • Testing environment has been setup with gulp and karma
  • Only tests for the compile directive have been added (in tests/compile-directive.tests.js)
  • The rest of the project completely lacks tests

I've put some effort in trying to write tests for the main modal-select directive, but couldn't get to a good solution about testing the code.
Sadly, this reflects my poor experience with testing of js code of a component like this one. This case, in particular, is hard to handle for me for the followin reason: It's not very clear to me how to test the component without user interaction, as it has very strong dependencies on some ionic directives and services such as $ionicModalSelect and collection-repeat

Anyone can help on this?

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

No branches or pull requests

1 participant