Skip to content

Commit

Permalink
fix(ghostMode): ensure .location defaults to true - fixes #1363
Browse files Browse the repository at this point in the history
  • Loading branch information
shakyShane committed May 15, 2017
1 parent b2955fc commit 1a0505c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/default-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ module.exports = {
* @property ghostMode
* @param {Boolean} [clicks=true]
* @param {Boolean} [scroll=true]
* @param {Boolean} [location=true]
* @param {Boolean} [forms=true]
* @param {Boolean} [forms.submit=true]
* @param {Boolean} [forms.inputs=true]
Expand All @@ -156,6 +157,7 @@ module.exports = {
ghostMode: {
clicks: true,
scroll: true,
location: true,
forms: {
submit: true,
inputs: true,
Expand Down
1 change: 1 addition & 0 deletions test/specs/cli/cli.options.ghost.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ describe("CLI: Options: Merging Ghostmode options", function () {
});
assert.isFalse(imm.getIn(["ghostMode", "clicks"]));
assert.isTrue(imm.getIn(["ghostMode", "scroll"]));
assert.isTrue(imm.getIn(["ghostMode", "location"]));
assert.isTrue(imm.getIn(["ghostMode", "forms", "submit"]));
assert.isTrue(imm.getIn(["ghostMode", "forms", "inputs"]));
assert.isTrue(imm.getIn(["ghostMode", "forms", "toggles"]));
Expand Down

0 comments on commit 1a0505c

Please sign in to comment.