mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-07-25 13:10:31 +08:00
15 lines
359 B
JavaScript
15 lines
359 B
JavaScript
|
|
beforeEach(function() {
|
|
this.addMatchers({
|
|
toEqualMoment: function(expected) {
|
|
return $.fullCalendar.moment(this.actual).format() ===
|
|
$.fullCalendar.moment(expected).format();
|
|
},
|
|
toEqualNow: function() {
|
|
return Math.abs(
|
|
$.fullCalendar.moment(this.actual) -
|
|
new Date()
|
|
) < 1000; // within a second of current datetime
|
|
}
|
|
});
|
|
}); |