fix some tests that relied on the local tz (thanks Hong Kong)

This commit is contained in:
Adam Shaw
2014-04-29 21:08:32 +08:00
parent 601e556a90
commit e79c47c129
+2 -2
View File
@@ -285,7 +285,7 @@ describe('ambiguously-timed moment', function() {
describe('unambiguous moment', function() {
it('can be made ambiguously-zoned via stripZone', function() {
var mom = $.fullCalendar.moment('2014-06-08T10:00:00-0700');
var mom = $.fullCalendar.moment.utc('2014-06-08T10:00:00-0000');
expect(mom.hasZone()).toBe(true);
expect(mom.hasTime()).toBe(true);
mom.stripZone();
@@ -295,7 +295,7 @@ describe('unambiguous moment', function() {
});
it('can be made ambigously-timed via stripTime', function() {
var mom = $.fullCalendar.moment('2014-06-08T10:00:00-0700');
var mom = $.fullCalendar.moment.utc('2014-06-08T10:00:00-0000');
expect(mom.hasTime()).toBe(true);
expect(mom.hasZone()).toBe(true);
mom.stripTime();