


const assert = require('chai').assert

@@ -1,10 +1,39 @@
 %0A%0A
+const path = require('path');
 %0Aconst a
@@ -62,9 +62,664 @@
 ).assert
+;%0Aconst app = require(path.join(__dirname, '..', 'lib_server', 'index'));%0Aconst rpc = require('json-rpc2');%0Aconst client = rpc.Client.$create(5000, 'localhost');%0A%0A%0A%0Adescribe('app', () =%3E %7B%0A  it('should serve JSON-RPC on port 5000', (done) =%3E %7B%0A    // Call add function on the server%0A    client.call('add', %5Bnull, 1, 2%5D, function(err, result) %7B%0A        assert.isNull(err);%0A        assert.equal(result, '3');%0A        done();%0A    %7D);%0A  %7D);%0A  %0A  it('should serve JSON-RPC login method', (done) =%3E %7B%0A    client.call('login', %5B'pete', 'rosebud'%5D, function(err, result) %7B%0A      assert.isDefined(err);%0A      assert.isNull(result);%0A      done();%0A    %7D);%0A  %7D);%0A%7D);%0A
 %0A

add basic JSONRPC tests