Skip to content

Commit 68028e7

Browse files
committed
Calendar tests: use dateEqual assert instead of timestamp compare
Fix travis unit test issue due to timezone difference.
1 parent 2c43879 commit 68028e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/calendar/options.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,9 @@ test( "value", function( assert ) {
327327

328328
this.element.calendar( "option", "value", date );
329329
assert.dateEqual( this.element.calendar( "option", "value" ), date, "Value set" );
330-
equal(
331-
this.widget.find( "table button.ui-state-active" ).data( "ui-calendar-timestamp" ),
332-
1463954400000,
330+
assert.dateEqual(
331+
new Date( this.widget.find( "table button.ui-state-active" ).data( "ui-calendar-timestamp" ) ),
332+
new Date( 1463972400000 ),
333333
"Active button timestamp"
334334
);
335335

0 commit comments

Comments
 (0)