|
|
@@ -2,23 +2,16 @@ import { testEventDrag, testEventResize, testSelection } from '../lib/dnd-resize
|
|
|
|
|
|
describe('event constraint', function() {
|
|
|
|
|
|
- var options;
|
|
|
-
|
|
|
- beforeEach(function() {
|
|
|
- options = {};
|
|
|
- options.defaultDate = '2014-11-10';
|
|
|
- options.defaultView = 'agendaWeek';
|
|
|
- options.scrollTime = '00:00';
|
|
|
- affix('#cal');
|
|
|
- $('#cal').width(1100);
|
|
|
+ pushOptions({
|
|
|
+ defaultDate: '2014-11-10',
|
|
|
+ defaultView: 'agendaWeek',
|
|
|
+ scrollTime: '00:00',
|
|
|
});
|
|
|
-
|
|
|
describe('when used with a specific date range', function() {
|
|
|
-
|
|
|
describe('when an event is being dragged', function() {
|
|
|
-
|
|
|
describe('to the middle of the constraint range', function() {
|
|
|
it('allows a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
options.events = [ {
|
|
|
start: '2014-11-10T01:00:00',
|
|
|
end: '2014-11-10T02:00:00',
|
|
|
@@ -32,6 +25,7 @@ describe('event constraint', function() {
|
|
|
|
|
|
describe('when in month view with timed event', function() {
|
|
|
it('allows a drag, respects time of day', function(done) {
|
|
|
+ var options = {};
|
|
|
options.defaultView = 'month';
|
|
|
options.events = [ {
|
|
|
start: '2014-11-10T05:00:00',
|
|
|
@@ -42,7 +36,7 @@ describe('event constraint', function() {
|
|
|
}
|
|
|
} ];
|
|
|
testEventDrag(options, '2014-11-14', true, function() {
|
|
|
- var event = $('#cal').fullCalendar('clientEvents')[0];
|
|
|
+ var event = currentCalendar.clientEvents()[0];
|
|
|
expect(event.start).toEqualMoment('2014-11-14T05:00:00');
|
|
|
expect(event.end).toEqualMoment('2014-11-14T07:00:00');
|
|
|
done();
|
|
|
@@ -53,6 +47,7 @@ describe('event constraint', function() {
|
|
|
|
|
|
describe('to the start of the constraint range', function() {
|
|
|
it('allows a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
options.events = [ {
|
|
|
start: '2014-11-10T01:00:00',
|
|
|
end: '2014-11-10T02:00:00',
|
|
|
@@ -68,6 +63,8 @@ describe('event constraint', function() {
|
|
|
describe('to the end of the constraint range', function() {
|
|
|
describe('when the event has an explicit end', function() {
|
|
|
it('allows a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
start: '2014-11-10T01:00:00',
|
|
|
end: '2014-11-10T02:00:00',
|
|
|
@@ -81,6 +78,8 @@ describe('event constraint', function() {
|
|
|
});
|
|
|
describe('when the event has an implied end', function() {
|
|
|
it('allows a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.defaultTimedEventDuration = '01:30:00';
|
|
|
options.events = [ {
|
|
|
start: '2014-11-10T01:00:00',
|
|
|
@@ -96,6 +95,8 @@ describe('event constraint', function() {
|
|
|
|
|
|
describe('before a constraint range', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
start: '2014-11-10T01:00:00',
|
|
|
end: '2014-11-10T02:00:00',
|
|
|
@@ -112,6 +113,8 @@ describe('event constraint', function() {
|
|
|
describe('using an event object\'s constraint', function() {
|
|
|
describe('when in agendaWeek view with timed events', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
start: '2014-11-10T01:00:00',
|
|
|
end: '2014-11-10T02:00:00',
|
|
|
@@ -123,12 +126,12 @@ describe('event constraint', function() {
|
|
|
testEventDrag(options, '2014-11-10T06:00:00', false, done);
|
|
|
});
|
|
|
});
|
|
|
- describe('when in month view', function() {
|
|
|
- beforeEach(function() {
|
|
|
- options.defaultView = 'month';
|
|
|
- });
|
|
|
+ describe('when in month view', function() {
|
|
|
+ pushOptions({defaultView:'month'});
|
|
|
describe('with timed event and all-day constraint', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
start: '2014-11-10T01:00:00',
|
|
|
end: '2014-11-10T02:00:00',
|
|
|
@@ -142,6 +145,8 @@ describe('event constraint', function() {
|
|
|
});
|
|
|
describe('with timed event and timed constraint', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
start: '2014-11-10T01:00:00',
|
|
|
end: '2014-11-10T02:00:00',
|
|
|
@@ -155,6 +160,8 @@ describe('event constraint', function() {
|
|
|
});
|
|
|
describe('with all-day event and all-day constraint', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
start: '2014-11-10',
|
|
|
end: '2014-11-12',
|
|
|
@@ -168,6 +175,8 @@ describe('event constraint', function() {
|
|
|
});
|
|
|
describe('with all-day event and timed constraint', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
start: '2014-11-10',
|
|
|
end: '2014-11-12',
|
|
|
@@ -183,6 +192,8 @@ describe('event constraint', function() {
|
|
|
});
|
|
|
describe('using an event source\'s constraint', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.eventSources = [ {
|
|
|
events: [ {
|
|
|
start: '2014-11-10T01:00:00',
|
|
|
@@ -198,7 +209,8 @@ describe('event constraint', function() {
|
|
|
});
|
|
|
describe('using eventConstraint', function() {
|
|
|
it('does not allow a drag and doesnt call eventDataTransform', function(done) {
|
|
|
-
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
start: '2014-11-10T01:00:00',
|
|
|
end: '2014-11-10T02:00:00'
|
|
|
@@ -226,6 +238,8 @@ describe('event constraint', function() {
|
|
|
describe('intersecting the constraint start', function() {
|
|
|
describe('with no timezone', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
start: '2014-11-10T03:00:00',
|
|
|
end: '2014-11-10T05:00:00',
|
|
|
@@ -239,6 +253,8 @@ describe('event constraint', function() {
|
|
|
});
|
|
|
describe('with UTC timezone', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.timezone = 'UTC';
|
|
|
options.events = [ {
|
|
|
start: '2014-11-10T03:00:00+00:00',
|
|
|
@@ -256,6 +272,8 @@ describe('event constraint', function() {
|
|
|
describe('intersecting the constraint end', function() {
|
|
|
describe('when the event has an explicit end', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
start: '2014-11-10T03:00:00',
|
|
|
end: '2014-11-10T05:00:00',
|
|
|
@@ -269,6 +287,8 @@ describe('event constraint', function() {
|
|
|
});
|
|
|
describe('when the event has an implied end', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.defaultTimedEventDuration = '02:30';
|
|
|
options.events = [ {
|
|
|
start: '2014-11-10T03:00:00',
|
|
|
@@ -282,6 +302,8 @@ describe('event constraint', function() {
|
|
|
});
|
|
|
describe('with UTC timezone', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.timezone = 'UTC';
|
|
|
options.events = [ {
|
|
|
start: '2014-11-10T03:00:00+00:00',
|
|
|
@@ -298,6 +320,8 @@ describe('event constraint', function() {
|
|
|
|
|
|
describe('into a constraint it encompasses', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
start: '2014-11-10T01:00:00',
|
|
|
end: '2014-11-10T05:00:00',
|
|
|
@@ -316,6 +340,8 @@ describe('event constraint', function() {
|
|
|
|
|
|
describe('when the start is already outside the constraint', function() {
|
|
|
it('does not allow a resize', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
start: '2014-11-12T01:00:00',
|
|
|
end: '2014-11-12T03:00:00',
|
|
|
@@ -330,6 +356,8 @@ describe('event constraint', function() {
|
|
|
|
|
|
describe('when resized well within the constraint', function() {
|
|
|
it('allows a resize', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
start: '2014-11-12T02:00:00',
|
|
|
end: '2014-11-12T04:00:00',
|
|
|
@@ -344,6 +372,8 @@ describe('event constraint', function() {
|
|
|
|
|
|
describe('when resized to the end of the constraint', function() {
|
|
|
it('allows a resize', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
start: '2014-11-12T02:00:00',
|
|
|
end: '2014-11-12T04:00:00',
|
|
|
@@ -358,6 +388,8 @@ describe('event constraint', function() {
|
|
|
|
|
|
describe('when resized past the end of the constraint', function() {
|
|
|
it('does not allow a resize', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
start: '2014-11-12T02:00:00',
|
|
|
end: '2014-11-12T04:00:00',
|
|
|
@@ -378,7 +410,10 @@ describe('event constraint', function() {
|
|
|
describe('when an event is being dragged', function() {
|
|
|
|
|
|
describe('to the middle of the constraint range', function() {
|
|
|
+
|
|
|
it('allows a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
start: '2014-11-12T01:00:00',
|
|
|
end: '2014-11-12T03:00:00',
|
|
|
@@ -393,6 +428,8 @@ describe('event constraint', function() {
|
|
|
|
|
|
describe('outside of a constraint range', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
start: '2014-11-12T01:00:00',
|
|
|
end: '2014-11-12T03:00:00',
|
|
|
@@ -407,6 +444,8 @@ describe('event constraint', function() {
|
|
|
|
|
|
describe('on an off-day of a constraint range', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
start: '2014-11-12T01:00:00',
|
|
|
end: '2014-11-12T03:00:00',
|
|
|
@@ -427,7 +466,10 @@ describe('event constraint', function() {
|
|
|
describe('when an event is being dragged', function() {
|
|
|
|
|
|
describe('to the middle of the constraint range', function() {
|
|
|
+
|
|
|
it('allows a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.businessHours = {
|
|
|
start: '02:00',
|
|
|
end: '06:00'
|
|
|
@@ -443,6 +485,8 @@ describe('event constraint', function() {
|
|
|
|
|
|
describe('outside of a constraint range', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.businessHours = {
|
|
|
start: '02:00',
|
|
|
end: '06:00'
|
|
|
@@ -458,6 +502,8 @@ describe('event constraint', function() {
|
|
|
|
|
|
describe('on an off-day of a constraint range', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.businessHours = {
|
|
|
start: '02:00',
|
|
|
end: '06:00',
|
|
|
@@ -480,6 +526,8 @@ describe('event constraint', function() {
|
|
|
|
|
|
describe('to the middle of the constraint range', function() {
|
|
|
it('allows a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [
|
|
|
{
|
|
|
start: '2014-11-12T01:00:00',
|
|
|
@@ -500,6 +548,8 @@ describe('event constraint', function() {
|
|
|
describe('outside of a foreground event constraint', function() {
|
|
|
describe('with an explicit end time', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [
|
|
|
{
|
|
|
start: '2014-11-12T01:00:00',
|
|
|
@@ -518,6 +568,8 @@ describe('event constraint', function() {
|
|
|
});
|
|
|
describe('when an implied end time', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.defaultTimedEventDuration = '01:00:00';
|
|
|
options.events = [
|
|
|
{
|
|
|
@@ -538,6 +590,8 @@ describe('event constraint', function() {
|
|
|
|
|
|
describe('outside of a background-event constraint', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [
|
|
|
{
|
|
|
start: '2014-11-12T01:00:00',
|
|
|
@@ -558,6 +612,8 @@ describe('event constraint', function() {
|
|
|
|
|
|
describe('when the event ID constraint matches no events', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [
|
|
|
{
|
|
|
start: '2014-11-12T01:00:00',
|
|
|
@@ -569,12 +625,12 @@ describe('event constraint', function() {
|
|
|
});
|
|
|
});
|
|
|
|
|
|
- describe('when in month view', function() {
|
|
|
- beforeEach(function() {
|
|
|
- options.defaultView = 'month';
|
|
|
- });
|
|
|
+ describe('when in month view', function() {
|
|
|
+ pushOptions({defaultView: 'month'});
|
|
|
describe('when the event ID constraint matches no events', function() {
|
|
|
it('does not allow a drag', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [
|
|
|
{
|
|
|
start: '2014-11-12',
|
|
|
@@ -590,23 +646,20 @@ describe('event constraint', function() {
|
|
|
});
|
|
|
});
|
|
|
|
|
|
-describe('selectConstraint', function() {
|
|
|
-
|
|
|
- var options;
|
|
|
-
|
|
|
- beforeEach(function() {
|
|
|
- options = {};
|
|
|
- options.defaultDate = '2014-11-10';
|
|
|
- options.defaultView = 'agendaWeek';
|
|
|
- options.scrollTime = '00:00';
|
|
|
- affix('#cal');
|
|
|
- $('#cal').width(1100);
|
|
|
+describe('selectConstraint', function() {
|
|
|
+
|
|
|
+ pushOptions({
|
|
|
+ defaultDate:'2014-11-10',
|
|
|
+ defaultView:'agendaWeek',
|
|
|
+ scrollTime:'00:00',
|
|
|
});
|
|
|
|
|
|
describe('when used with a specific date range', function() {
|
|
|
|
|
|
describe('when dragged clearly within', function() {
|
|
|
it('allows a selection', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.selectConstraint = {
|
|
|
start: '2014-11-12T01:00:00',
|
|
|
end: '2014-11-12T20:00:00'
|
|
|
@@ -617,6 +670,8 @@ describe('selectConstraint', function() {
|
|
|
|
|
|
describe('when dragged within, starting with the constraint start', function() {
|
|
|
it('allows a selection', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.selectConstraint = {
|
|
|
start: '2014-11-12T01:00:00',
|
|
|
end: '2014-11-12T20:00:00'
|
|
|
@@ -627,6 +682,8 @@ describe('selectConstraint', function() {
|
|
|
|
|
|
describe('when dragged within, ending with the constraint end', function() {
|
|
|
it('allows a selection', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.selectConstraint = {
|
|
|
start: '2014-11-12T01:00:00',
|
|
|
end: '2014-11-12T05:00:00'
|
|
|
@@ -637,6 +694,8 @@ describe('selectConstraint', function() {
|
|
|
|
|
|
describe('when dragged intersecting the constraint start', function() {
|
|
|
it('does not allow a selection', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.selectConstraint = {
|
|
|
start: '2014-11-12T03:00:00',
|
|
|
end: '2014-11-12T20:00:00'
|
|
|
@@ -647,6 +706,8 @@ describe('selectConstraint', function() {
|
|
|
|
|
|
describe('when dragged intersecting the constraint end', function() {
|
|
|
it('does not allow a selection', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.selectConstraint = {
|
|
|
start: '2014-11-12T03:00:00',
|
|
|
end: '2014-11-12T07:00:00'
|
|
|
@@ -658,6 +719,8 @@ describe('selectConstraint', function() {
|
|
|
describe('when dragged after the constraint', function() {
|
|
|
describe('when in agendaWeek view with timed events', function() {
|
|
|
it('does not allow a selection', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.selectConstraint = {
|
|
|
start: '2014-11-12T03:00:00',
|
|
|
end: '2014-11-12T05:00:00'
|
|
|
@@ -665,12 +728,12 @@ describe('selectConstraint', function() {
|
|
|
testSelection(options, '05:00', '2014-11-12T07:00:00', false, done);
|
|
|
});
|
|
|
});
|
|
|
- describe('when in month view', function() {
|
|
|
- beforeEach(function() {
|
|
|
- options.defaultView = 'month';
|
|
|
- });
|
|
|
+ describe('when in month view', function() {
|
|
|
+ pushOptions({defaultView: 'month'});
|
|
|
describe('when an all-day constraint', function() {
|
|
|
it('does not allow a selection', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.selectConstraint = {
|
|
|
start: '2014-11-13',
|
|
|
end: '2014-11-14'
|
|
|
@@ -680,6 +743,8 @@ describe('selectConstraint', function() {
|
|
|
});
|
|
|
describe('when a timed constraint, out of bounds', function() {
|
|
|
it('does not allow a selection', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.selectConstraint = {
|
|
|
start: '2014-11-12T01:00:00',
|
|
|
end: '2014-11-14T00:00:00'
|
|
|
@@ -689,6 +754,8 @@ describe('selectConstraint', function() {
|
|
|
});
|
|
|
describe('when a timed constraint, in bounds', function() {
|
|
|
it('allows a selection', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.selectConstraint = {
|
|
|
start: '2014-11-12T00:00:00',
|
|
|
end: '2014-11-14T00:00:00'
|
|
|
@@ -704,6 +771,8 @@ describe('selectConstraint', function() {
|
|
|
|
|
|
describe('to the middle of the constraint range', function() {
|
|
|
it('allows a selection when in bounds', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.selectConstraint = {
|
|
|
start: '01:00:00',
|
|
|
end: '05:00:00'
|
|
|
@@ -714,6 +783,8 @@ describe('selectConstraint', function() {
|
|
|
|
|
|
describe('outside of a constraint range', function() {
|
|
|
it('does not allow a selection when single day', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.selectConstraint = {
|
|
|
start: '01:00:00',
|
|
|
end: '05:00:00'
|
|
|
@@ -721,6 +792,8 @@ describe('selectConstraint', function() {
|
|
|
testSelection(options, '02:00', '2014-11-12T06:00:00', false, done);
|
|
|
});
|
|
|
it('does not allow a selection when multiday', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.selectConstraint = {
|
|
|
start: '01:00:00',
|
|
|
end: '05:00:00'
|
|
|
@@ -734,6 +807,8 @@ describe('selectConstraint', function() {
|
|
|
|
|
|
describe('to the middle of the constraint range', function() {
|
|
|
it('allows a selection', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.businessHours = {
|
|
|
start: '01:00:00',
|
|
|
end: '05:00:00'
|
|
|
@@ -745,6 +820,8 @@ describe('selectConstraint', function() {
|
|
|
|
|
|
describe('outside of a constraint range', function() {
|
|
|
it('does not allow a selection', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.businessHours = {
|
|
|
start: '01:00:00',
|
|
|
end: '05:00:00'
|
|
|
@@ -756,6 +833,8 @@ describe('selectConstraint', function() {
|
|
|
|
|
|
describe('with a custom dow when dragged to a dead day', function() {
|
|
|
it('does not allow a selection', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.businessHours = {
|
|
|
start: '01:00:00',
|
|
|
end: '05:00:00',
|
|
|
@@ -771,6 +850,8 @@ describe('selectConstraint', function() {
|
|
|
|
|
|
describe('to the middle of the constraint range', function() {
|
|
|
it('allows a selection', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
id: 'yo',
|
|
|
start: '2014-11-12T02:00:00',
|
|
|
@@ -784,6 +865,8 @@ describe('selectConstraint', function() {
|
|
|
|
|
|
describe('outside of a constraint range', function() {
|
|
|
it('does not allow a selection', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.events = [ {
|
|
|
id: 'yo',
|
|
|
start: '2014-11-12T02:00:00',
|
|
|
@@ -798,12 +881,16 @@ describe('selectConstraint', function() {
|
|
|
describe('when event ID does not match any events', function() {
|
|
|
describe('when in agendaWeek view', function() {
|
|
|
it('does not allow a selection', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.selectConstraint = 'yooo';
|
|
|
testSelection(options, '03:00', '2014-11-12T06:00:00', false, done);
|
|
|
});
|
|
|
});
|
|
|
describe('when in month view', function() {
|
|
|
it('does not allow a selection', function(done) {
|
|
|
+ var options = {};
|
|
|
+
|
|
|
options.defaultView = 'month';
|
|
|
options.selectConstraint = 'yooo';
|
|
|
testSelection(options, null, '2014-11-15', false, done);
|