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

Testing the module #11

Open
BeOleg opened this issue Jan 20, 2014 · 2 comments
Open

Testing the module #11

BeOleg opened this issue Jan 20, 2014 · 2 comments

Comments

@BeOleg
Copy link
Contributor

BeOleg commented Jan 20, 2014

Hi Asaf, I am now writing tests for this module using mocha, the problem is that for the module to be testable the ZeroClipboard instances will have to be stored inside a service \ factory, in order to call the getText() method from the test(probably service...)

Now I am thinking about about a good way to implement this, and the only way I've been able to come up with so far is a hash map that will contain the zeroClipboard object as value, and the key will be the element id(not good, don't want to force the users to set an id attribute for the element they bind the plugin to)

Any ideas?

@BeOleg
Copy link
Contributor Author

BeOleg commented Jan 21, 2014

Look at those ones:
BeOleg@c0e00da
BeOleg@6ebc0e3

@BeOleg
Copy link
Contributor Author

BeOleg commented Jan 31, 2014

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

1 participant