Quellcode durchsuchen

automated tests for issue 2237

Adam Shaw vor 11 Jahren
Ursprung
Commit
75e00a5db7
1 geänderte Dateien mit 18 neuen und 0 gelöschten Zeilen
  1. 18 0
      tests/automated/displayEventEnd.js

+ 18 - 0
tests/automated/displayEventEnd.js

@@ -119,6 +119,24 @@ describe('displayEventEnd', function() {
 					});
 					});
 				});
 				});
 
 
+				describe('with a timed event given an invalid end time', function(done) {
+					beforeEach(function() {
+						options.events = [ {
+							title: 'timed event',
+							start: '2014-06-13T01:00:00',
+							end: '2014-06-13T01:00:00',
+							allDay: false
+						} ];
+					});
+					it('displays only the start time text', function(done) {
+						options.eventAfterAllRender = function() {
+							expect($('.fc-event .fc-time')).toHaveText('1:00');
+							done();
+						};
+						$('#cal').fullCalendar(options);
+					});
+				});
+
 				describe('with a timed event with an end time', function() {
 				describe('with a timed event with an end time', function() {
 					beforeEach(function() {
 					beforeEach(function() {
 						options.events = [ {
 						options.events = [ {