From 4af47e622b99f5072f78106e87c7b2ffb76abdd0 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Wed, 3 May 2017 10:28:40 -0400 Subject: [PATCH] update spinbox unit testing changed event for setValue to be async --- test/spinbox-test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/spinbox-test.js b/test/spinbox-test.js index bdf750669..de8537d15 100644 --- a/test/spinbox-test.js +++ b/test/spinbox-test.js @@ -286,6 +286,7 @@ define( function ( require ) { } ); QUnit.test('spinbox should trigger change after using setValue', function (assert) { + var ready = assert.async(); var $spinbox = $(html).find('#MySpinboxDecimal').spinbox({ value: '1' }); @@ -294,6 +295,7 @@ define( function ( require ) { $spinbox.on('changed.fu.spinbox', function () { assert.ok(true, 'spinbox triggers changed after input' ); + ready(); }); $spinbox.find('.spinbox-input').val(1);