JSFiddle - React, Tailwind, and code Playground

JavaScript

describe('test', function() {
  'use strict';
    
  var socket;
    
    describe('service test', function() {
    	var service = null;
        
        beforeEach(inject(function(myService) {
        	service = myService;   
            socket = io.connect('http://localhost:3000');
        }));
        
        afterEach(function() {
      	  socket.disconnect();
      	  console.log('Disconnected')
     	})
        
        it('sample test', function(done){
        	console.log(socket.connected) // FALSE (Propably others will not work too
            socket.emit('test runned', {}) // BUT IT WORKS!
			socket.on('test response', function(res) {
            	console.log('It\'s not working :(');
            })
            
            // Last try
            socket.on('connect', function() {
              console.log('Nope'')  
            })
        }))
    }
})