make all of the newer automated tests pass the linter

This commit is contained in:
Adam Shaw
2014-08-02 16:27:56 -07:00
parent bba2d6fcad
commit 0fa47ad2b7
2 changed files with 17 additions and 6 deletions
+16 -5
View File
@@ -38,8 +38,11 @@ describe('dayClick', function() {
};
spyOn(options, 'dayClick').and.callThrough();
$('#cal').fullCalendar(options);
var dayCell = $('.fc-day:eq(10)'); // 2014-05-07 (regardless of isRTL)
dayCell.simulate('drag-n-drop', { // for simulating the mousedown/mouseup/click (relevant for selectable)
// for simulating the mousedown/mouseup/click (relevant for selectable)
dayCell.simulate('drag-n-drop', {
callback: function() {
dayCell.simulate('click');
expect(options.dayClick).toHaveBeenCalled();
@@ -63,8 +66,12 @@ describe('dayClick', function() {
};
spyOn(options, 'dayClick').and.callThrough();
$('#cal').fullCalendar(options);
var dayContent = $('.fc-agenda-view .fc-day-grid .fc-day:eq(3)'); // 2014-05-28 (regardless of isRTL)
dayContent.simulate('drag-n-drop', { // for simulating the mousedown/mouseup/click (relevant for selectable)
// 2014-05-28 (regardless of isRTL)
var dayContent = $('.fc-agenda-view .fc-day-grid .fc-day:eq(3)');
// for simulating the mousedown/mouseup/click (relevant for selectable)
dayContent.simulate('drag-n-drop', {
callback: function() {
dayContent.simulate('click');
expect(options.dayClick).toHaveBeenCalled();
@@ -87,8 +94,12 @@ describe('dayClick', function() {
};
spyOn(options, 'dayClick').and.callThrough();
$('#cal').fullCalendar(options);
var slotRow = $('.fc-slats tr:eq(18) td:not(.fc-time)'); // the middle is 2014-05-28T09:00:00 (regardless of isRTL)
slotRow.simulate('drag-n-drop', { // for simulating the mousedown/mouseup/click (relevant for selectable)
// the middle is 2014-05-28T09:00:00 (regardless of isRTL)
var slotRow = $('.fc-slats tr:eq(18) td:not(.fc-time)');
// for simulating the mousedown/mouseup/click (relevant for selectable)
slotRow.simulate('drag-n-drop', {
callback: function() {
expect(options.dayClick).toHaveBeenCalled();
done();
+1 -1
View File
@@ -8,7 +8,7 @@ describe('header rendering', function() {
describe('when using default header options', function() {
it('should have title as default on left', function() {
$('#calendar').fullCalendar();
expect($('#calendar > .fc-toolbar > .fc-left > *')).toBeMatchedBy('h2')
expect($('#calendar > .fc-toolbar > .fc-left > *')).toBeMatchedBy('h2');
});
it('should have empty center', function() {
$('#calendar').fullCalendar();