Skip to content

Commit

Permalink
[js] Fix typo in execute_script_test.js (#2582)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets authored and jleyba committed Aug 8, 2016
1 parent 62f83f5 commit 8f773cf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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);
});
Expand Down

0 comments on commit 8f773cf

Please sign in to comment.