Просмотр исходного кода

disable test where moment dies when an invalid lang is specified

Adam Shaw 10 лет назад
Родитель
Сommit
2f4a49bc36
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      tests/automated/lang.js

+ 4 - 1
tests/automated/lang.js

@@ -39,7 +39,10 @@ describe('lang', function() {
 		expect(moment.lang()).toEqual('fr');
 	});
 
-	it('defaults to English when configured to language that isn\'t loaded', function() {
+	// the most recent version of moment will actually throw a cryptic exception,
+	// and instead of papering over this, just let it be thrown. will indicate that something
+	// needs to be fixed to the developer.
+	xit('defaults to English when configured to language that isn\'t loaded', function() {
 		affix('#cal');
 		$('#cal').fullCalendar({
 			lang: 'zz'