Comparing version 0.0.5 to 0.0.6
@@ -43,2 +43,5 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
} | ||
if (options["binary-args"]) { | ||
args.unshift( options["binary-args"] ); | ||
} | ||
@@ -45,0 +48,0 @@ return normalizeBinary(options.binary).then(function(binary) { |
{ | ||
"name": "fx-runner", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "A node cli to control Firefox", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -49,2 +49,17 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
it("--binary-args <CMDARGS>", function (done) { | ||
var proc = exec("start -v -b " + fakeBinary + " --binary-args \"-test\" ./", {}, function (err, stdout, stderr) { | ||
expect(err).to.not.be.ok; | ||
expect(stderr).to.not.be.ok; | ||
expect(stdout).to.contain("-test"); | ||
expect(stdout).to.not.contain("--binary-args"); | ||
expect(stdout).to.not.contain("--profile"); | ||
expect(stdout).to.not.contain("--P"); | ||
expect(stdout).to.not.contain("-foreground"); | ||
expect(stdout).to.not.contain("-no-remote"); | ||
expect(stdout).to.not.contain("-new-instance"); | ||
done(); | ||
}); | ||
}); | ||
it("--foreground", function (done) { | ||
@@ -51,0 +66,0 @@ var proc = exec("start -v -b " + fakeBinary + " --foreground", {}, function (err, stdout, stderr) { |
Sorry, the diff of this file is not supported yet
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
14196
314