From 68028e7262a14463b71539f4e3bca689e49acf33 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Sun, 30 Oct 2016 00:54:34 +0200 Subject: [PATCH] Calendar tests: use dateEqual assert instead of timestamp compare Fix travis unit test issue due to timezone difference. --- tests/unit/calendar/options.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/calendar/options.js b/tests/unit/calendar/options.js index ab352c4a03..0afbfaf69c 100644 --- a/tests/unit/calendar/options.js +++ b/tests/unit/calendar/options.js @@ -327,9 +327,9 @@ test( "value", function( assert ) { this.element.calendar( "option", "value", date ); assert.dateEqual( this.element.calendar( "option", "value" ), date, "Value set" ); - equal( - this.widget.find( "table button.ui-state-active" ).data( "ui-calendar-timestamp" ), - 1463954400000, + assert.dateEqual( + new Date( this.widget.find( "table button.ui-state-active" ).data( "ui-calendar-timestamp" ) ), + new Date( 1463972400000 ), "Active button timestamp" );