{"size": 1810, "ext": "js", "max_stars_repo_path": "tcpserver/app/test/server-client.test.js", "max_stars_repo_name": "noriega3/xtract.chat", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "tcpserver/app/test/server-client.test.js", "max_issues_repo_name": "noriega3/xtract.chat", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tcpserver/app/test/server-client.test.js", "max_forks_repo_name": "noriega3/xtract.chat", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.28125, "max_line_length": 94, "alphanum_fraction": 0.6966850829}
/* global describe it */
process.title = 'node-mocha'
const Promise = require("bluebird")
const _isEqual = require("lodash/isEqual")
const chai = require('chai')
chai.config.includeStack = true; // turn on stack trace
chai.config.showDiff = true; // turn off reporter diff display
chai.config.truncateThreshold = 10; // disable truncating
chai.should()
const expect = chai.expect

//simulated client (taken functions from dashboard)
process.env.NODE_PATH = '.'
process.env.DEBUG_COLORS = true
process.env.DEBUG_HIDE_DATE = true
process.env.NODE_ENV = 'development'
process.env.DEBUG = '*,-not_this,-ioredis:*,-bull'
const TCP_SERVER_PORT = process.env.TCP_SERVER_PORT || 7776 //default for 7776 for client-test
//uses mocha chai
//uses API for chai - http://chaijs.com/api/
//Don't use arrow ES6 on mocha (recommended)

const createSocketTest = (name, path) => {
    describe(name, function(){
		this.timeout(10000)
		require(path)
	});
}

describe('Server', function(){
	this.timeout(60000)
/*	const nodeServer = require('../pubsub_server.js')
	const httpServer = require('../http_server.js')

	this.timeout(10000)

	before(function(done){
		nodeServer.init(() => done())
	})

	before(function(done){
		httpServer.init(() => done())
	})*/

	createSocketTest('System Room Quick Test', './client-system-quick.test')
	createSocketTest('Standard Room Quick Test', './client-standard-quick.test')
	createSocketTest('Realtime Room Quick Test', './client-realtime-quick.test')
	createSocketTest('Turnbased Room Quick Test', './client-turnbased-quick.test')

	//full
	createSocketTest('System Room Full Test', './client-system-full.test')


	/*	after(function(done){
            httpServer.destroy(() => done())
        })

        after(function(done){
            nodeServer.destroy(() => done())
        })*/


})
