Closed mscharp closed 9 years ago
You can check out the test in commangular test folder. These test are using commangular-mocks to dispatch events or groups easily. Commangular-mocks add a dispatch method to the window,so you don't need to use $commangular object.
Currently, there is a section in your documentation for Unit testing commands, but it is empty. I figured out how to test them, so I thought I would post what I've done in case it helps anyone. Also, if you think it could be done better/easier I would appreciate the feedback. Thanks
Command:
Test: