diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-03 18:58:28 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-03 18:58:28 -0500 |
| commit | 2bb57e067e196b3623eb86528517addd52b67943 (patch) | |
| tree | 19dcec39137da11e145c5599c8bdb90c99c12a80 /test/lib | |
| parent | fffc000bd73b740318762747c07aa39adca1313a (diff) | |
app proxy running smoothly
Diffstat (limited to 'test/lib')
| -rw-r--r-- | test/lib/promise.js | 2 | ||||
| -rw-r--r-- | test/lib/sdk.js | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/lib/promise.js b/test/lib/promise.js index ad895d90..a3638de4 100644 --- a/test/lib/promise.js +++ b/test/lib/promise.js @@ -21,10 +21,12 @@ module.exports = function(fn, data){ then: function(cb){ if (my_res) cb(my_res) else my_cb = cb + return promise }, error: function(cb){ if (my_error) cb(my_error) else error_cb = cb + return promise } } return promise diff --git a/test/lib/sdk.js b/test/lib/sdk.js index a34b18f9..a52d63c2 100644 --- a/test/lib/sdk.js +++ b/test/lib/sdk.js @@ -23,7 +23,7 @@ for (var i = 0; i < files.length; i++) { eval( fs.readFileSync(fn) + '' ) } -sdk.init({ production: true }) +sdk.init({ env: 'test' }) sdk.auth = auth // stick this here for now module.exports = sdk |
