{"size": 762, "ext": "js", "max_stars_repo_path": "test/spec/Default.spec.js", "max_stars_repo_name": "ammanvedi/iotstatesync", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/spec/Default.spec.js", "max_issues_repo_name": "ammanvedi/iotstatesync", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/spec/Default.spec.js", "max_forks_repo_name": "ammanvedi/iotstatesync", "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": 22.4117647059, "max_line_length": 64, "alphanum_fraction": 0.4566929134}
describe( 'Socket Client', function() {
    this.timeout( 10000 );

    it( 'Connects to Server', function( done ) {

        var client = new  IOTStateSync.SocketClient( {
            onConnected: function() {
                expect( true ).to.equal( true );
                done();
            }
        } );

    } );
} );


describe( 'Sync State Manager', function() {
    this.timeout( 5000 );

    it( 'Registers client', function( done ) {

        var manager = new IOTStateSync.ClientSyncStateManager( {
            onConnected: function() {},
            onRegister: function( err ) {

                if( err ) {
                    expect( true ).to.equal( false );
                }
                done();
            }
        } );
    } ); 
} );
