Skip to content

Commit

Permalink
refactor(testabilityPatch): remove code duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
gkalpak committed Dec 12, 2016
1 parent 29f3bf4 commit fade1db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/helpers/testabilityPatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,7 @@ function generateInputCompilerHelper(helper) {
};

helper.changeInputValueTo = function(value) {
helper.inputElm.val(value);
browserTrigger(helper.inputElm, $sniffer.hasEvent('input') ? 'input' : 'change');
helper.changeGivenInputTo(helper.inputElm, value);
};

helper.changeGivenInputTo = function(inputElm, value) {
Expand Down

0 comments on commit fade1db

Please sign in to comment.