From 5b0b65ae9f28a1646d386b91770edfe92be2ec23 Mon Sep 17 00:00:00 2001 From: Adam Shaw Date: Sat, 24 May 2014 02:06:02 -0700 Subject: [PATCH] fix bug with jasmine momentjs comparers --- tests/lib/jasmine-ext.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/lib/jasmine-ext.js b/tests/lib/jasmine-ext.js index 9e05d73..785ec94 100644 --- a/tests/lib/jasmine-ext.js +++ b/tests/lib/jasmine-ext.js @@ -5,8 +5,8 @@ beforeEach(function() { return { compare: function(actual, expected) { return { - pass: $.fullCalendar.moment(actual).format() === - $.fullCalendar.moment(expected).format() + pass: $.fullCalendar.moment.parseZone(actual).format() === + $.fullCalendar.moment.parseZone(expected).format() }; } }; @@ -16,7 +16,7 @@ beforeEach(function() { compare: function(actual) { return { pass: Math.abs( - $.fullCalendar.moment(actual) - + $.fullCalendar.moment.parseZone(actual) - new Date() ) < 1000 // within a second of current datetime };