{"size": 1179, "ext": "js", "max_stars_repo_path": "web/src/server/test/helper.js", "max_stars_repo_name": "Mr-ssk/Spika", "max_stars_repo_stars_event_min_datetime": "2015-01-03T10:47:00.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-19T04:59:45.000Z", "max_issues_repo_path": "web/src/server/test/helper.js", "max_issues_repo_name": "Mr-ssk/Spika", "max_issues_repo_issues_event_min_datetime": "2015-01-02T10:10:59.000Z", "max_issues_repo_issues_event_max_datetime": "2021-07-22T10:53:11.000Z", "max_forks_repo_path": "web/src/server/test/helper.js", "max_forks_repo_name": "Mr-ssk/Spika", "max_forks_repo_forks_event_min_datetime": "2015-01-07T08:12:15.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-08T14:21:45.000Z"}
{"max_stars_count": 758, "max_issues_count": 82, "max_forks_count": 520, "avg_line_length": 20.3275862069, "max_line_length": 47, "alphanum_fraction": 0.3698049194}
var request = require('supertest');
var app = require('../mainTest');

    var params1 = {
        name : "test",
        avatarURL : "test",
        roomID : "test",
        userID : "test"
    };
    
    var params2 = {
        name : "test",
        avatarURL : "test",
        roomID : "test",
        userID : "test2"
    };
    
    var token1 = "";
        	
before(function(done){
    
    // need to wait a bit to everyting be ready
    setTimeout(function(){

        request(app)
            .post('/spika/v1/user/login')
            .send(params1)
    		.expect('Content-Type', /json/)
    		.expect(200) 
            .end(function (err, res) {
    
    		if (err) {
    			throw err;
    		}
            
    
            request(app)
                .post('/spika/v1/user/login')
                .send(params2)
                .expect('Content-Type', /json/)
                .expect(200) 
                .end(function (err, res) {
                
                if (err) {
                	throw err;
                }
                
                
                done();
            
            });
        
        });   
    
        
    }, 100);

});