diff --git a/lib/rules/no-browser-driver.js b/lib/rules/no-browser-driver.js index 85f35e2..e962c11 100644 --- a/lib/rules/no-browser-driver.js +++ b/lib/rules/no-browser-driver.js @@ -18,7 +18,7 @@ module.exports = { if (object && object.name === 'browser' && property && property.name === 'driver') { context.report({ - node: node, + node: property, message: 'Unexpected use of browser.driver instead of browser' }) } diff --git a/lib/rules/no-browser-pause.js b/lib/rules/no-browser-pause.js index 73da2e5..603e32a 100644 --- a/lib/rules/no-browser-pause.js +++ b/lib/rules/no-browser-pause.js @@ -18,7 +18,7 @@ module.exports = { if (object && property && object.name === 'browser' && property.name === 'pause') { context.report({ - node: node, + node: property, message: 'Unexpected browser.pause()' }) } diff --git a/lib/rules/no-browser-sleep.js b/lib/rules/no-browser-sleep.js index e3442f7..3b21cde 100644 --- a/lib/rules/no-browser-sleep.js +++ b/lib/rules/no-browser-sleep.js @@ -18,7 +18,7 @@ module.exports = { if (object && property && object.name === 'browser' && property.name === 'sleep') { context.report({ - node: node, + node: property, message: 'Unexpected browser.sleep()' }) } diff --git a/lib/rules/no-by-xpath.js b/lib/rules/no-by-xpath.js index ee9869c..b6269e0 100644 --- a/lib/rules/no-by-xpath.js +++ b/lib/rules/no-by-xpath.js @@ -18,7 +18,7 @@ module.exports = { if (object && property && object.name === 'by' && property.name === 'xpath') { context.report({ - node: node, + node: property, message: 'Unexpected by.xpath()' }) } diff --git a/lib/rules/no-get-location-abs-url.js b/lib/rules/no-get-location-abs-url.js index 7fc5f9b..1db2ce1 100644 --- a/lib/rules/no-get-location-abs-url.js +++ b/lib/rules/no-get-location-abs-url.js @@ -18,7 +18,7 @@ module.exports = { if (object && property && object.name === 'browser' && property.name === 'getLocationAbsUrl') { context.report({ - node: node, + node: property, message: 'Unexpected browser.getLocationAbsUrl()' }) }