Przeglądaj źródła

fix bug with jasmine momentjs comparers

Adam Shaw 11 lat temu
rodzic
commit
5b0b65ae9f
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      tests/lib/jasmine-ext.js

+ 3 - 3
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
 					};