From 8f773cfbfef1c7f66246fb3643146c64ad9eaeed Mon Sep 17 00:00:00 2001 From: Vitaliy Potapov Date: Mon, 8 Aug 2016 20:27:02 +0300 Subject: [PATCH] [js] Fix typo in execute_script_test.js (#2582) --- .../node/selenium-webdriver/test/execute_script_test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/node/selenium-webdriver/test/execute_script_test.js b/javascript/node/selenium-webdriver/test/execute_script_test.js index b01916d5946e9..98ed82dc0da1a 100644 --- a/javascript/node/selenium-webdriver/test/execute_script_test.js +++ b/javascript/node/selenium-webdriver/test/execute_script_test.js @@ -47,7 +47,7 @@ test.suite(function(env) { test.it('fails if script throws', function() { execute('throw new Error("boom")') - .then(function() { throw shoudlHaveFailed; }) + .then(function() { throw shouldHaveFailed; }) .catch(function(e) { // The java WebDriver server adds a bunch of crap to error messages. // Error message will just be "JavaScript error" for IE. @@ -57,7 +57,7 @@ test.suite(function(env) { test.it('fails if script does not parse', function() { execute('throw function\\*') - .then(function() { throw shoudlHaveFailed; }) + .then(function() { throw shouldHaveFailed; }) .catch(function(e) { assert(e).notEqualTo(shouldHaveFailed); });