瀏覽代碼

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

Adam Shaw 11 年之前
父節點
當前提交
e79c47c129
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tests/automated/moment-ambig.js

+ 2 - 2
tests/automated/moment-ambig.js

@@ -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();