mocha-headless-chrome
Advanced tools
Comparing version 1.5.2 to 1.5.3
{ | ||
"name": "mocha-headless-chrome", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "Run client-side mocha tests in the command line through headless Chrome", | ||
@@ -11,3 +11,3 @@ "main": "runner.js", | ||
"scripts": { | ||
"start": "node cli -f example-page.html -o result.json" | ||
"start": "node cli -f example-page.html -o result.json -w 801 -H 501 -r nyan" | ||
}, | ||
@@ -32,3 +32,3 @@ "repository": { | ||
"args": "^3.0.7", | ||
"puppeteer": "^0.11.0" | ||
"puppeteer": "^0.12.0" | ||
}, | ||
@@ -35,0 +35,0 @@ "devDependencies": { |
@@ -117,17 +117,15 @@ 'use strict'; | ||
function handleConsole(...args) { | ||
// process stdout stub | ||
let isStdout = args[0] === 'stdout:'; | ||
isStdout && (args = args.slice(1)); | ||
let msg = util.format(...args); | ||
!isStdout && (msg += '\n'); | ||
process.stdout.write(msg); | ||
function handleConsole({ args }) { | ||
Promise.all(args.map(a => a.jsonValue())) | ||
.then(args => { | ||
// process stdout stub | ||
let isStdout = args[0] === 'stdout:'; | ||
isStdout && (args = args.slice(1)); | ||
// | ||
let msg = util.format(...args); | ||
!isStdout && (msg += '\n'); | ||
process.stdout.write(msg); | ||
}); | ||
} | ||
function onError(err) { | ||
console.error(err); | ||
process.exit(1); | ||
} | ||
module.exports = function ({ file, reporter, timeout, width, height, args, executablePath }) { | ||
@@ -134,0 +132,0 @@ return new Promise(resolve => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12719
+ Addedpuppeteer@0.12.0(transitive)
- Removedpuppeteer@0.11.0(transitive)
Updatedpuppeteer@^0.12.0