mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-09-09 11:22:41 +08:00
fix some tests that relied on the local tz (thanks Hong Kong)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user