Index: test/runners/firefox_process.js |
=================================================================== |
--- a/test/runners/firefox_process.js |
+++ b/test/runners/firefox_process.js |
@@ -41,18 +41,12 @@ |
.setFirefoxOptions(options) |
.build(); |
return executeScript(driver, "Firefox", script, scriptName, scriptArgs); |
} |
module.exports = function(script, scriptName, ...scriptArgs) |
{ |
- return ensureFirefox(FIREFOX_VERSION).then(firefoxPath => |
- { |
- return runScript(firefoxPath, script, scriptName, scriptArgs) |
- .then(result => result) |
- .catch(error => |
- { |
- throw error; |
- }); |
- }); |
+ return ensureFirefox(FIREFOX_VERSION) |
+ .then(firefoxPath => |
+ runScript(firefoxPath, script, scriptName, scriptArgs)); |
}; |