Semaphore/web2/tests/unit/lib/Socket.spec.js
Denis Gukov d417f95273 feat(be): feat(fe): add websocket for task logs
Additionally:
- Added link for running task, https://github.com/ansible-semaphore/semaphore/issues/481
- Added class Listenable and unit tests for it
2020-11-22 04:28:51 +05:00

14 lines
326 B
JavaScript

/* eslint-disable symbol-description */
/* eslint-disable no-unused-expressions */
import { expect } from 'chai';
import Socket from '@/lib/Socket';
describe('Socket', () => {
it('Should add listener', () => {
const socket = new Socket(() => ({
close: () => {},
}));
expect(socket.ws).to.be.ok;
});
});