Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit fade1db

Browse files
committed
refactor(testabilityPatch): remove code duplication
1 parent 29f3bf4 commit fade1db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/helpers/testabilityPatch.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,7 @@ function generateInputCompilerHelper(helper) {
391391
};
392392

393393
helper.changeInputValueTo = function(value) {
394-
helper.inputElm.val(value);
395-
browserTrigger(helper.inputElm, $sniffer.hasEvent('input') ? 'input' : 'change');
394+
helper.changeGivenInputTo(helper.inputElm, value);
396395
};
397396

398397
helper.changeGivenInputTo = function(inputElm, value) {

0 commit comments

Comments
 (0)