Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Don’t rewrap jQuery element in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
1000hz committed Jul 16, 2016
1 parent c08d671 commit d38456e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/tests/unit/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ $(function () {

assert.equal($errors.text(), '', 'field was not validated since it was added after the validator was initialized')

$(form)
form
.validator('update')
.validator('validate')

Expand Down Expand Up @@ -627,7 +627,7 @@ $(function () {
assert.equal($('#errors').text(), '', 'fields are initially matching')

$('#source').val('bar')
$(form).validator('validate')
form.validator('validate')

assert.equal($('#errors').text(), 'error', 'error is raised on source change')
})
Expand Down

0 comments on commit d38456e

Please sign in to comment.