Commit aaff5c8f authored by Sam Saccone's avatar Sam Saccone

tests: Fix test lint errors

parent 3e8479e9
'use strict';
var drool = require('drool'); var drool = require('drool');
var frameworkPathLookup = require('./framework-path-lookup'); var frameworkPathLookup = require('./framework-path-lookup');
var argv = require('optimist').default('laxMode', false).default('browser', 'chrome').argv; var argv = require('optimist').default('laxMode', false).default('browser', 'chrome').argv;
...@@ -18,7 +20,7 @@ function idApp() { ...@@ -18,7 +20,7 @@ function idApp() {
.thenCatch(function () { return false; }); .thenCatch(function () { return false; });
} }
function newTodoSelector(name) { function newTodoSelector() {
return idApp().then(function (isId) { return idApp().then(function (isId) {
if (isId) { if (isId) {
return '#new-todo'; return '#new-todo';
...@@ -28,7 +30,7 @@ function newTodoSelector(name) { ...@@ -28,7 +30,7 @@ function newTodoSelector(name) {
}); });
} }
function listSelector(name) { function listSelector() {
return idApp().then(function (isId) { return idApp().then(function (isId) {
if (isId) { if (isId) {
return '#todo-list li'; return '#todo-list li';
...@@ -55,7 +57,7 @@ list.forEach(function (framework) { ...@@ -55,7 +57,7 @@ list.forEach(function (framework) {
return driver.findElement(drool.webdriver.By.css(listSelector(name))).isDisplayed() return driver.findElement(drool.webdriver.By.css(listSelector(name))).isDisplayed()
.then(function () { .then(function () {
return true; return true;
}) });
}); });
}, 10000); }, 10000);
...@@ -87,7 +89,7 @@ list.forEach(function (framework) { ...@@ -87,7 +89,7 @@ list.forEach(function (framework) {
} }
}.bind(framework.name) }.bind(framework.name)
}, driver) }, driver);
}); });
driver.quit(); driver.quit();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment