mocha-phantomjs-core
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -21,2 +21,18 @@ var | ||
// Create and configure the client page | ||
var | ||
output = config.file ? fs.open(config.file, 'w') : system.stdout, | ||
page = webpage.create({ | ||
settings: config.settings | ||
}), | ||
fail = function(msg, errno) { | ||
if (output && config.file) { | ||
output.close() | ||
} | ||
if (msg) { | ||
system.stderr.writeLine(msg) | ||
} | ||
return phantom.exit(errno || 1) | ||
} | ||
if (config.hooks) { | ||
@@ -39,18 +55,2 @@ hookData = { | ||
// Create and configure the client page | ||
var | ||
output = config.file ? fs.open(config.file, 'w') : system.stdout, | ||
page = webpage.create({ | ||
settings: config.settings | ||
}), | ||
fail = function(msg, errno) { | ||
if (output && config.file) { | ||
output.close() | ||
} | ||
if (msg) { | ||
system.stderr.writeLine(msg) | ||
} | ||
return phantom.exit(errno || 1) | ||
} | ||
if (config.headers) { | ||
@@ -57,0 +57,0 @@ page.customHeaders = config.headers |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": "Nathan Black <nathan@nathanblack.org> (https://github.com/nathanboktae)", | ||
@@ -15,0 +15,0 @@ "licenses": [ |
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