Преглед изворни кода

fix node test inconsistency with rtl text

Adam Shaw пре 8 година
родитељ
комит
f87cc27e59
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      tests/legacy/locale.js

+ 4 - 2
tests/legacy/locale.js

@@ -79,8 +79,10 @@ describe('locale', function() {
     expect($('.fc h2')).toHaveText('julio 2016')
     expect($('.fc')).not.toHaveClass('fc-rtl')
 
-    $('#cal').fullCalendar('option', 'locale', 'ar')
-    expect($('.fc h2')).toHaveText('تموز يوليو ٢٠١٦')
+    $('#cal').fullCalendar('option', 'locale', 'fr')
+    expect($('.fc h2')).toHaveText('juillet 2016')
+
+    $('#cal').fullCalendar('option', 'locale', 'ar') // NOTE: we had problems testing for RTL title text
     expect($('.fc')).toHaveClass('fc-rtl')
   })