diff --git a/lib/sorting-hat.js b/lib/sorting-hat.js index 82c0b0f..502fd65 100644 --- a/lib/sorting-hat.js +++ b/lib/sorting-hat.js @@ -250,7 +250,7 @@ module.exports.assign = function (state, tun, cb) { // 1. No modification handlerpath may be an aboslute path // 2. it may be relative to a user home directory - // 3. it may be relative to a user local/share + // 3. it may be relative to a user ~/local/share tlsSocket._tun = tun; tlsSocket._id = id; @@ -260,6 +260,7 @@ module.exports.assign = function (state, tun, cb) { } if (/^~/.test(handlerpath)) { + // TODO have the telebit remote tell which user is running handlerpath = path.join(homedir, handlerpath.replace(/^~(\/?)/, '')); } diff --git a/tests/pair-state.js b/tests/pair-state.js index 4ba87e9..53752c1 100644 --- a/tests/pair-state.js +++ b/tests/pair-state.js @@ -15,4 +15,8 @@ urequest(req, function (err, resp, body) { } console.log('Done:'); console.log(body); + /* + body.status = 'ready' | 'pending' | 'complete' | 'invalid' + body.access_token // only in 'ready' state + */ });