Fixing style issues

This commit is contained in:
David Asabina
2014-05-24 03:38:25 +02:00
parent 054a44ab16
commit ccde440850
2 changed files with 12 additions and 14 deletions
-1
View File
@@ -15,7 +15,6 @@
$('#calendar').fullCalendar({
defaultDate: '2014-01-12',
editable: true,
weekends: false,
events: [
{
title: 'All Day Event',
+12 -13
View File
@@ -4,7 +4,7 @@ describe('short day names', function() {
'month',
'agendaWeek',
'basicWeek',
]
];
var dayClasses = [
'.fc-sun',
'.fc-mon',
@@ -18,8 +18,7 @@ describe('short day names', function() {
beforeEach(function() {
affix('#cal');
settings = {
}
settings = { };
});
testableClasses.forEach(function(viewClass, index, viewClasses) {
@@ -27,44 +26,44 @@ describe('short day names', function() {
beforeEach(function() {
settings.defaultView = viewClass;
});
describe('when lang is default', function() {
it('should be in English', function() {
moment.lang('en');
$('#cal').fullCalendar(settings);
var weekdays = moment.weekdaysShort();
dayClasses.forEach(function(cls, index, classes) {
expect($('.fc-view thead ' + cls)[0]).toContainText(weekdays[index]);
});
});
});
describe('when lang is not default', function() {
languages.forEach(function(language, index, languages) {
it('should be in the selected language', function() {
settings.lang = language;
$('#cal').fullCalendar(settings);
moment.lang(language);
var dow = moment.langData(language)._week.dow
var dow = moment.langData(language)._week.dow;
var weekdays = moment.weekdaysShort();
dayClasses.forEach(function(cls, index, classes) {
expect($('.fc-view thead ' + cls)[0]).toContainText(weekdays[index]);
});
});
});
});
describe('when specified', function() {
it('should contain the specified names in the given order', function() {
var days = [
'Hovjaj', 'maSjaj', 'veSjaj', 'mechjaj', 'parmaqjaj', 'HoSjaj'
]
'Hov.', 'maS.', 'veS.', 'mech.', 'parmaq.', 'HoS.'
];
settings.dayNamesShort = days;
$('#cal').fullCalendar(settings);
dayClasses.forEach(function(cls, index, classes) {
expect($('.fc-view thead ' + cls)[0]).toContainText(days[index]);
});