|
@@ -56,21 +56,21 @@ describe('removeEventSource', function() {
|
|
|
|
|
|
|
|
var source1 = function(start, end, timezone, callback) {
|
|
var source1 = function(start, end, timezone, callback) {
|
|
|
setTimeout(function() {
|
|
setTimeout(function() {
|
|
|
- callback([{
|
|
|
|
|
|
|
+ callback([ {
|
|
|
title: 'event1',
|
|
title: 'event1',
|
|
|
className: 'event1',
|
|
className: 'event1',
|
|
|
start: '2014-08-01T02:00:00'
|
|
start: '2014-08-01T02:00:00'
|
|
|
- }]);
|
|
|
|
|
|
|
+ } ]);
|
|
|
}, 100);
|
|
}, 100);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
var source2 = function(start, end, timezone, callback) {
|
|
var source2 = function(start, end, timezone, callback) {
|
|
|
setTimeout(function() {
|
|
setTimeout(function() {
|
|
|
- callback([{
|
|
|
|
|
|
|
+ callback([ {
|
|
|
title: 'event2',
|
|
title: 'event2',
|
|
|
className: 'event2',
|
|
className: 'event2',
|
|
|
start: '2014-08-01T02:00:00'
|
|
start: '2014-08-01T02:00:00'
|
|
|
- }]);
|
|
|
|
|
|
|
+ } ]);
|
|
|
}, 100);
|
|
}, 100);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -94,10 +94,10 @@ describe('removeEventSource', function() {
|
|
|
|
|
|
|
|
describe('when multiple sources share the same fetching function', function() {
|
|
describe('when multiple sources share the same fetching function', function() {
|
|
|
var fetchFunc = function(start, end, timezone, callback) {
|
|
var fetchFunc = function(start, end, timezone, callback) {
|
|
|
- callback([{
|
|
|
|
|
|
|
+ callback([ {
|
|
|
title: 'event',
|
|
title: 'event',
|
|
|
start: '2014-08-01T02:00:00'
|
|
start: '2014-08-01T02:00:00'
|
|
|
- }]);
|
|
|
|
|
|
|
+ } ]);
|
|
|
};
|
|
};
|
|
|
beforeEach(function() {
|
|
beforeEach(function() {
|
|
|
options.eventSources = [
|
|
options.eventSources = [
|
|
@@ -192,4 +192,4 @@ describe('removeEventSource', function() {
|
|
|
expect($('.fc-event').length).toBe(cnt);
|
|
expect($('.fc-event').length).toBe(cnt);
|
|
|
expect($('#cal').fullCalendar('clientEvents').length).toBe(cnt);
|
|
expect($('#cal').fullCalendar('clientEvents').length).toBe(cnt);
|
|
|
}
|
|
}
|
|
|
-});
|
|
|
|
|
|
|
+});
|