I'm very new to angular, or maybe just stupid. But how do I test a controller that uses angular-websocket? It certainly isn't this:
describe('controllers', function(){
beforeEach(module('myapp.controllers'));
it('should ....', inject(function($controller) {
//spec body
var mycontroller = $controller('mycontroller', {
$scope: {} ,
WebSocket: WebSocket
});
expect(mycontroller).toBeDefined();
}));