Explorar o código

Make timezone test expect Z suffix for UTC times

Moment 2.13.0 now formats moments in UTC mode with a "Z" suffix instead
of +00:00.

This commit changes the FullCalendar automated test for timezones to
expect that new formatting.
Peter Nowee %!s(int64=9) %!d(string=hai) anos
pai
achega
7a09fc019b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      tests/automated/timezone.js

+ 2 - 2
tests/automated/timezone.js

@@ -81,10 +81,10 @@ describe('timezone', function() {
 			expect(allDayEvent.start.format()).toEqual('2014-05-02');
 			expect(timedEvent.start.hasZone()).toEqual(true);
 			expect(timedEvent.start.hasTime()).toEqual(true);
-			expect(timedEvent.start.format()).toEqual('2014-05-10T12:00:00+00:00');
+			expect(timedEvent.start.format()).toEqual('2014-05-10T12:00:00Z');
 			expect(zonedEvent.start.hasZone()).toEqual(true);
 			expect(zonedEvent.start.hasTime()).toEqual(true);
-			expect(zonedEvent.start.format()).toEqual('2014-05-10T03:00:00+00:00');
+			expect(zonedEvent.start.format()).toEqual('2014-05-10T03:00:00Z');
 			done();
 		};
 		$('#cal').fullCalendar(options);