From 20a29dfd61f0f632c0d08aa0d1db3057668f3f7c Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 6 Dec 2012 11:56:56 -0500 Subject: Datepicker: Run JSHint test in unit tests. --- tests/unit/datepicker/datepicker_core.js | 2 ++ tests/unit/datepicker/datepicker_options.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/unit/datepicker/datepicker_core.js b/tests/unit/datepicker/datepicker_core.js index 3c88059d1..67dd29eac 100644 --- a/tests/unit/datepicker/datepicker_core.js +++ b/tests/unit/datepicker/datepicker_core.js @@ -6,6 +6,8 @@ module("datepicker: core"); +TestHelpers.testJshint( "datepicker" ); + test("initialization - Reinitialization after body had been emptied.", function() { expect( 1 ); var bodyContent = $('body').children(), inp = $("#inp"); diff --git a/tests/unit/datepicker/datepicker_options.js b/tests/unit/datepicker/datepicker_options.js index 4b09face5..06fde26e6 100644 --- a/tests/unit/datepicker/datepicker_options.js +++ b/tests/unit/datepicker/datepicker_options.js @@ -64,7 +64,8 @@ test( "disabled", function() { inp = TestHelpers.datepicker.init('#inp', { disabled: true }); ok(inp.datepicker('isDisabled'), 'Initially marked as disabled'); ok(inp[0].disabled, 'Field initially disabled'); -}) +}); + test('change', function() { expect( 12 ); var inp = TestHelpers.datepicker.init('#inp'), -- cgit v1.2.3