From 0dc84b2f8393ae297d676029495dd02e987f7c08 Mon Sep 17 00:00:00 2001 From: Ellen Wong Date: Mon, 30 Nov 2015 17:15:13 -0800 Subject: [PATCH 1/2] use siteConfig to refer to site.json file --- commands/preview.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/preview.js b/commands/preview.js index 634a127..985c31e 100644 --- a/commands/preview.js +++ b/commands/preview.js @@ -29,7 +29,7 @@ var path = require('path'); try { - var site = require(path.join(path.resolve('./'), '/tests/system/site.json')); + var siteConfig = require(path.join(path.resolve('./'), '/tests/system/site.json')); } catch (e) { if (e instanceof Error && e.code === 'MODULE_NOT_FOUND') { console.log('Not using optional site.json...'); @@ -40,8 +40,8 @@ var qs = require('querystring'); exports.command = function(url, callback) { var browser = this; - if (site) { - site = site.profiles[site.activeProfile]; + if (siteConfig) { + var site = siteConfig.profiles[siteConfig.activeProfile]; if (typeof url === 'function') { callback = url; From f1ad1ffdc591cae21106cd337de5d33c3e2785af Mon Sep 17 00:00:00 2001 From: Ellen Wong Date: Tue, 8 Dec 2015 12:31:33 -0800 Subject: [PATCH 2/2] bump version number --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 61539ef..10cbc76 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nightwatch-commands", - "version": "1.3.1", + "version": "1.3.2", "description": "A set of Mobify specific custom commands for Nightwatch.js", "repository": { "type": "git",