1 | var lib, opts, tests;
|
2 |
|
3 | tests = require('../src/WebSocket');
|
4 |
|
5 | lib = require('../src/Config');
|
6 |
|
7 | // storedPath = lib.getStoredPath()
|
8 | // fs.exists storedPath, (exists) ->
|
9 | // if exists
|
10 | // fs.readFile storedPath, (err, data) ->
|
11 | // if err
|
12 | // throw err
|
13 | // opts = JSON.parse data
|
14 | // tests.testRuntimeCommand(
|
15 | // opts.name,
|
16 | // opts.command,
|
17 | // opts.port,
|
18 | // opts.collection
|
19 | // )
|
20 | // else
|
21 | // throw new Error('Run fpb-init first to configure');
|
22 | opts = lib.getStored();
|
23 |
|
24 | tests.testRuntimeCommand(opts.name, opts.command, opts.host, opts.port, opts.collection, opts.version);
|