dateAlignment.js 658 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. SEE ALSO: next/prev
  3. */
  4. describe('dateAlignment', function() {
  5. pushOptions({
  6. defaultView: 'agenda',
  7. dateAlignment: 'week',
  8. defaultDate: '2017-06-15'
  9. });
  10. describe('when 3 day duration', function() {
  11. pushOptions({
  12. duration: { days: 3 }
  13. });
  14. it('aligns with the week', function() {
  15. initCalendar();
  16. ViewDateUtils.expectActiveRange('2017-06-11', '2017-06-14');
  17. });
  18. });
  19. describe('when 5 day count', function() {
  20. pushOptions({
  21. dayCount: 5,
  22. weekends: false
  23. });
  24. it('aligns with first visible day of the week', function() {
  25. initCalendar();
  26. ViewDateUtils.expectActiveRange('2017-06-12', '2017-06-17');
  27. });
  28. });
  29. });