diff options
Diffstat (limited to 'tests/unit/datepicker/events.js')
-rw-r--r-- | tests/unit/datepicker/events.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/unit/datepicker/events.js b/tests/unit/datepicker/events.js index 44064ee21..50ee07b86 100644 --- a/tests/unit/datepicker/events.js +++ b/tests/unit/datepicker/events.js @@ -4,6 +4,7 @@ define( [ "./helper", "ui/widgets/datepicker" ], function( QUnit, $, testHelper ) { +"use strict"; var beforeAfterEach = testHelper.beforeAfterEach; @@ -136,8 +137,12 @@ QUnit.test( "events", function( assert ) { QUnit.test( "beforeShowDay-getDate", function( assert ) { assert.expect( 3 ); - var inp = testHelper.init( "#inp", { beforeShowDay: function() { inp.datepicker( "getDate" ); return [ true, "" ]; } } ), - dp = $( "#ui-datepicker-div" ); + var inp = testHelper.init( "#inp", { + beforeShowDay: function() { + inp.datepicker( "getDate" ); return [ true, "" ]; + } + } ); + var dp = $( "#ui-datepicker-div" ); inp.val( "01/01/2010" ).datepicker( "show" ); // Contains non-breaking space |