"use strict";// import ChannelBase from '../channels/channelBase';
// import ClientBase from '../clients/clientBase';
// import MHSClient from '../clients/sites/mhsClient';
// import MHSChannel from '../channels/sites/mhsChannel';
// import ChannelManager from '../channelManager';
// var expect = require('chai').expect;
// var sinon = require('sinon');
// var name: string = 'test channel';
// var data: any = { 'client': 'test', 'client_type':'site', 'user_id': 125, 'user_type': 'user', 'channel': name }
// var WebSocketClient = require('websocket').client;
// var wsClient = new WebSocketClient();
// var client: ClientBase = new ClientBase(data, wsClient);
// let channelManager = new ChannelManager();
// describe('ChannelManager', function () {
//   var channel: ChannelBase;
//   it('should create a channel', function () {
//     channel = channelManager.createChannel(data);
//     expect(channel.id).to.be.equal(name);
//   });
//   it('should return existing channel when attempting to create a channel', function () {
//     channel = channelManager.createChannel(data);
//     expect(channel.id).to.be.equal(name);
//   });
//   it('should return a channel when searching if channel exists', function () {
//     var exists = channelManager.channelExists(channel.id);
//     var result = exists ? true : false;
//     expect(result).to.be.equal(true);
//   });
//   it('should not return a channel when serachingif channel exists', function () {
//     var exists = channelManager.channelExists('no channel');
//     var result = exists ? true : false;
//     expect(result).to.be.equal(false);
//   });
//   it('should add a client to channel', function () {
//     var result = channelManager.addClientToChannel(client, channel.id);
//     expect(result.status).to.be.equal('success');
//   });
//   it('should not add a client to channel', function () {
//     var result = channelManager.addClientToChannel(client, 'no channel');
//     expect(result.status).to.be.equal('notice');
//   });
//   it('should create a channel of type MHSChannel', function () {
//     var data2 = { 'channel': 'test channel 2', 'client': 'mhs', 'client_type':'site' };
//     var result = channelManager.createByChannelType(data2);
//     expect(result.id).to.be.equal('test channel 2');
//   });
// });
//# sourceMappingURL=channelManager.spec.js.map
var cov_2ekv66b3zw=function(){var path="/Users/josh.burman/Projects/braid/dist/server/test/channelManager.spec.js";var hash="f222a0ce55557ab9204e7e683e44bdf3f4fa25dc";var Function=function(){}.constructor;var global=new Function("return this")();var gcv="__coverage__";var coverageData={path:"/Users/josh.burman/Projects/braid/dist/server/test/channelManager.spec.js",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"};var coverage=global[gcv]||(global[gcv]={});if(coverage[path]&&coverage[path].hash===hash){return coverage[path];}coverageData.hash=hash;return coverage[path]=coverageData;}();