"use strict";var cov_2ekv66b3zw=function(){var path="/Users/josh.burman/Projects/braid/dist/server/test/channelManager.spec.js";var hash="f75e38a32f7670e3dc88c352e7052027fb9f2144";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:{"0":{start:{line:2,column:0},end:{line:2,column:62}},"1":{start:{line:3,column:25},end:{line:3,column:53}},"2":{start:{line:4,column:13},end:{line:4,column:35}},"3":{start:{line:5,column:12},end:{line:5,column:28}},"4":{start:{line:6,column:11},end:{line:6,column:25}},"5":{start:{line:7,column:11},end:{line:7,column:108}},"6":{start:{line:8,column:21},end:{line:8,column:51}},"7":{start:{line:9,column:0},end:{line:25,column:3}},"8":{start:{line:11,column:4},end:{line:14,column:7}},"9":{start:{line:12,column:8},end:{line:12,column:53}},"10":{start:{line:13,column:8},end:{line:13,column:45}},"11":{start:{line:15,column:4},end:{line:19,column:7}},"12":{start:{line:16,column:21},end:{line:16,column:61}},"13":{start:{line:17,column:21},end:{line:17,column:42}},"14":{start:{line:18,column:8},end:{line:18,column:41}},"15":{start:{line:20,column:4},end:{line:24,column:7}},"16":{start:{line:21,column:21},end:{line:21,column:63}},"17":{start:{line:22,column:21},end:{line:22,column:42}},"18":{start:{line:23,column:8},end:{line:23,column:42}}},fnMap:{"0":{name:"(anonymous_0)",decl:{start:{line:9,column:27},end:{line:9,column:28}},loc:{start:{line:9,column:39},end:{line:25,column:1}},line:9},"1":{name:"(anonymous_1)",decl:{start:{line:11,column:34},end:{line:11,column:35}},loc:{start:{line:11,column:46},end:{line:14,column:5}},line:11},"2":{name:"(anonymous_2)",decl:{start:{line:15,column:34},end:{line:15,column:35}},loc:{start:{line:15,column:46},end:{line:19,column:5}},line:15},"3":{name:"(anonymous_3)",decl:{start:{line:20,column:38},end:{line:20,column:39}},loc:{start:{line:20,column:50},end:{line:24,column:5}},line:20}},branchMap:{"0":{loc:{start:{line:17,column:21},end:{line:17,column:42}},type:"cond-expr",locations:[{start:{line:17,column:30},end:{line:17,column:34}},{start:{line:17,column:37},end:{line:17,column:42}}],line:17},"1":{loc:{start:{line:22,column:21},end:{line:22,column:42}},type:"cond-expr",locations:[{start:{line:22,column:30},end:{line:22,column:34}},{start:{line:22,column:37},end:{line:22,column:42}}],line:22}},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,"3":0},b:{"0":[0,0],"1":[0,0]},_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_2ekv66b3zw.s[0]++;Object.defineProperty(exports,"__esModule",{value:true});const channelManager_1=(cov_2ekv66b3zw.s[1]++,require("../channelManager"));var expect=(cov_2ekv66b3zw.s[2]++,require('chai').expect);var sinon=(cov_2ekv66b3zw.s[3]++,require('sinon'));var name=(cov_2ekv66b3zw.s[4]++,'test channel');var data=(cov_2ekv66b3zw.s[5]++,{'client':'test','client_type':'site','user_id':125,'user_type':'user','channel':name});let channelManager=(cov_2ekv66b3zw.s[6]++,new channelManager_1.default());cov_2ekv66b3zw.s[7]++;describe('ChannelManager',function(){cov_2ekv66b3zw.f[0]++;var channel;cov_2ekv66b3zw.s[8]++;it('should create a channel',function(){cov_2ekv66b3zw.f[1]++;cov_2ekv66b3zw.s[9]++;channel=channelManager.createChannel(data);cov_2ekv66b3zw.s[10]++;expect(channel.id).to.be.equal(name);});cov_2ekv66b3zw.s[11]++;it('should return a channel',function(){cov_2ekv66b3zw.f[2]++;var exists=(cov_2ekv66b3zw.s[12]++,channelManager.channelExists(channel.id));var result=(cov_2ekv66b3zw.s[13]++,exists?(cov_2ekv66b3zw.b[0][0]++,true):(cov_2ekv66b3zw.b[0][1]++,false));cov_2ekv66b3zw.s[14]++;expect(result).to.be.equal(true);});cov_2ekv66b3zw.s[15]++;it('should not return a channel',function(){cov_2ekv66b3zw.f[3]++;var exists=(cov_2ekv66b3zw.s[16]++,channelManager.channelExists('no channel'));var result=(cov_2ekv66b3zw.s[17]++,exists?(cov_2ekv66b3zw.b[1][0]++,true):(cov_2ekv66b3zw.b[1][1]++,false));cov_2ekv66b3zw.s[18]++;expect(result).to.be.equal(false);});});//# sourceMappingURL=channelManager.spec.js.map