Example of how to call send event on Phantom through Karma. This is useful to executing things directly on Phantom such as getting screenshots or executing events directly on the browser.
You'll need npm... once those are installed you should just need to run npm test to run the test. If all succeeds you should see a few logs that say YAY!!!