"use strict";var cov_1wd6f9mhef=function(){var path="/Users/josh.burman/Projects/braid/dist/server/test/clientManager.spec.js";var hash="6e9121ff7d4d71b1ccf034b62caf77142e5fa284";var Function=function(){}.constructor;var global=new Function("return this")();var gcv="__coverage__";var coverageData={path:"/Users/josh.burman/Projects/braid/dist/server/test/clientManager.spec.js",statementMap:{"0":{start:{line:2,column:0},end:{line:2,column:62}},"1":{start:{line:3,column:21},end:{line:3,column:53}},"2":{start:{line:4,column:24},end:{line:4,column:51}},"3":{start:{line:5,column:13},end:{line:5,column:35}},"4":{start:{line:6,column:13},end:{line:6,column:35}},"5":{start:{line:7,column:12},end:{line:7,column:28}},"6":{start:{line:8,column:11},end:{line:8,column:25}},"7":{start:{line:9,column:11},end:{line:9,column:108}},"8":{start:{line:10,column:22},end:{line:10,column:49}},"9":{start:{line:11,column:15},end:{line:11,column:36}},"10":{start:{line:12,column:13},end:{line:12,column:53}},"11":{start:{line:13,column:20},end:{line:13,column:49}},"12":{start:{line:14,column:0},end:{line:23,column:3}},"13":{start:{line:15,column:4},end:{line:18,column:7}},"14":{start:{line:16,column:21},end:{line:16,column:60}},"15":{start:{line:17,column:8},end:{line:17,column:43}},"16":{start:{line:19,column:4},end:{line:22,column:7}},"17":{start:{line:20,column:21},end:{line:20,column:56}},"18":{start:{line:21,column:8},end:{line:21,column:56}}},fnMap:{"0":{name:"(anonymous_0)",decl:{start:{line:14,column:26},end:{line:14,column:27}},loc:{start:{line:14,column:38},end:{line:23,column:1}},line:14},"1":{name:"(anonymous_1)",decl:{start:{line:15,column:30},end:{line:15,column:31}},loc:{start:{line:15,column:42},end:{line:18,column:5}},line:15},"2":{name:"(anonymous_2)",decl:{start:{line:19,column:37},end:{line:19,column:38}},loc:{start:{line:19,column:49},end:{line:22,column:5}},line:19}},branchMap:{},s:{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0},f:{"0":0,"1":0,"2":0},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;}();cov_1wd6f9mhef.s[0]++;Object.defineProperty(exports,"__esModule",{value:true});const clientBase_1=(cov_1wd6f9mhef.s[1]++,require("../clients/clientBase"));const clientManager_1=(cov_1wd6f9mhef.s[2]++,require("../clientManager"));var expect=(cov_1wd6f9mhef.s[3]++,require('chai').expect);var assert=(cov_1wd6f9mhef.s[4]++,require('chai').assert);var sinon=(cov_1wd6f9mhef.s[5]++,require('sinon'));var name=(cov_1wd6f9mhef.s[6]++,'test channel');var data=(cov_1wd6f9mhef.s[7]++,{'client':'test','client_type':'site','user_id':125,'user_type':'user','channel':name});var WebSocketClient=(cov_1wd6f9mhef.s[8]++,require('websocket').client);var wsClient=(cov_1wd6f9mhef.s[9]++,new WebSocketClient());var client=(cov_1wd6f9mhef.s[10]++,new clientBase_1.default(data,wsClient));let clientManager=(cov_1wd6f9mhef.s[11]++,new clientManager_1.default());cov_1wd6f9mhef.s[12]++;describe('ClientManager',function(){cov_1wd6f9mhef.f[0]++;cov_1wd6f9mhef.s[13]++;it('should add a client',function(){cov_1wd6f9mhef.f[1]++;var result=(cov_1wd6f9mhef.s[14]++,clientManager.addClient(data,wsClient));cov_1wd6f9mhef.s[15]++;expect(result.id).to.be.equal(125);});cov_1wd6f9mhef.s[16]++;it('should get clients of type',function(){cov_1wd6f9mhef.f[2]++;var result=(cov_1wd6f9mhef.s[17]++,clientManager.clientsOfType('site'));cov_1wd6f9mhef.s[18]++;assert(result.length>0,'returns one client');});});//# sourceMappingURL=clientManager.spec.js.map