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

Commit 94112d9

Browse files
authored
Merge pull request #1966 from swilliamset/update-spinbox-test-w-listner-to-be-async
update spinbox unit testing changed event for setValue to be async
2 parents 66371da + 15c987f commit 94112d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/spinbox-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ define( function ( require ) {
286286
} );
287287

288288
QUnit.test('spinbox should trigger change after using setValue', function (assert) {
289+
var ready = assert.async();
289290
var $spinbox = $(html).find('#MySpinboxDecimal').spinbox({
290291
value: '1'
291292
});
@@ -294,6 +295,7 @@ define( function ( require ) {
294295

295296
$spinbox.on('changed.fu.spinbox', function () {
296297
assert.ok(true, 'spinbox triggers changed after input' );
298+
ready();
297299
});
298300

299301
$spinbox.find('.spinbox-input').val(1);

0 commit comments

Comments
 (0)