UNPKG

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