diff options
Diffstat (limited to 'deps/npm/node_modules/request/node_modules/har-validator/node_modules/bluebird/README.md')
-rw-r--r-- | deps/npm/node_modules/request/node_modules/har-validator/node_modules/bluebird/README.md | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/deps/npm/node_modules/request/node_modules/har-validator/node_modules/bluebird/README.md b/deps/npm/node_modules/request/node_modules/har-validator/node_modules/bluebird/README.md index dad5dcfd1..ee46c627b 100644 --- a/deps/npm/node_modules/request/node_modules/har-validator/node_modules/bluebird/README.md +++ b/deps/npm/node_modules/request/node_modules/har-validator/node_modules/bluebird/README.md @@ -135,7 +135,7 @@ fs.readFileAsync("file.json").then(JSON.parse).then(function(val) { console.error("invalid json in file"); }) .catch(function(e) { - console.error("unable to read file") + console.error("unable to read file"); }); ``` @@ -153,7 +153,7 @@ catch(SyntaxError e) { console.error("invalid json in file"); } catch(Error e) { - console.error("unable to read file") + console.error("unable to read file"); } ``` @@ -169,7 +169,7 @@ mapSeries(URLs, function (URL, done) { var options = {}; needle.get(URL, options, function (error, response, body) { if (error) { - return done(error) + return done(error); } try { var ret = JSON.parse(body); @@ -181,13 +181,13 @@ mapSeries(URLs, function (URL, done) { }); }, function (err, results) { if (err) { - console.log(err) + console.log(err); } else { console.log('All Needle requests successful'); // results is a 1 to 1 mapping in order of URLs > needle.body processAndSaveAllInDB(results, function (err) { if (err) { - return done(err) + return done(err); } console.log('All Needle requests saved'); done(null); @@ -328,7 +328,7 @@ Example of such library is the node core library `fs`. So if we promisify it, we var fs = Promise.promisifyAll(require("fs")); fs.readFileAsync("myfile.json").then(JSON.parse).then(function (json) { - console.log("Successful json") + console.log("Successful json"); }).catch(SyntaxError, function (e) { console.error("file contains invalid json"); }).catch(Promise.OperationalError, function (e) { @@ -411,7 +411,7 @@ Promise.longStackTraces(); Promise.resolve().then(function outer() { return Promise.resolve().then(function inner() { return Promise.resolve().then(function evenMoreInner() { - a.b.c.d() + a.b.c.d(); }).catch(function catcher(e){ console.error(e.stack); }); @@ -477,15 +477,15 @@ Keep the test tab active because some tests are timing-sensitive and will fail i The value of boolean flags is determined by presence, if you want to pass false value for a boolean flag, use the `no-`-prefix e.g. `--no-browser`. - - `--run=String`. Which tests to run (or compile when testing in browser). Default `"all"`. Can also be a glob string (relative to ./test/mocha folder) + - `--run=String` - Which tests to run (or compile when testing in browser). Default `"all"`. Can also be a glob string (relative to ./test/mocha folder). - `--cover=String`. Create code coverage using the String as istanbul reporter. Coverage is created in the ./coverage folder. No coverage is created by default, default reporter is `"html"` (use `--cover` to use default reporter). - `--browser` - Whether to compile tests for browsers. Default `false`. - - `--port=Number` - Whe port where local server is hosted when testing in browser. Default `9999` + - `--port=Number` - Port where local server is hosted when testing in browser. Default `9999` - `--execute-browser-tests` - Whether to execute the compiled tests for browser when using `--browser`. Default `true`. - `--open-browser` - Whether to open the default browser when executing browser tests. Default `true`. - `--fake-timers` - Whether to use fake timers (`setTimeout` etc) when running tests in node. Default `true`. - `--js-hint` - Whether to run JSHint on source files. Default `true`. - - `--saucelabs` Wheter to create a tunnel to sauce labs and run tests in their VMs instead of your browser when compiling tests for browser.Default `false`. + - `--saucelabs` - Whether to create a tunnel to sauce labs and run tests in their VMs instead of your browser when compiling tests for browser. Default `false`. ## Benchmarks |