Quellcode durchsuchen

Merge branch 'update_tests/eventClick' of https://github.com/jstacoder/fullcalendar

Adam Shaw vor 8 Jahren
Ursprung
Commit
83b67a4a64
1 geänderte Dateien mit 8 neuen und 10 gelöschten Zeilen
  1. 8 10
      tests/legacy/eventClick.js

+ 8 - 10
tests/legacy/eventClick.js

@@ -1,15 +1,12 @@
 
-describe('eventClick', function() {
-	var options;
-
-	beforeEach(function() {
-		affix('#cal');
-		options = {
-			defaultDate: '2014-08-01'
-		};
+describe('eventClick', function() {	
+	
+	pushOptions({
+		defaultDate: '2014-08-01'
 	});
 
 	it('works in month view', function(done) {
+		var options = {};
 		options.events = [
 			{ start: '2014-08-01', title: 'event1', className: 'event1' }
 		];
@@ -19,10 +16,11 @@ describe('eventClick', function() {
 		options.eventClick = function() {
 			done();
 		};
-		$('#cal').fullCalendar(options);
+		initCalendar(options);
 	});
 
 	it('works in month view via touch', function(done) {
+		var options = {};
 		options.events = [
 			{ start: '2014-08-01', title: 'event1', className: 'event1' }
 		];
@@ -32,7 +30,7 @@ describe('eventClick', function() {
 		options.eventClick = function() {
 			done();
 		};
-		$('#cal').fullCalendar(options);
+		initCalendar(options);
 	});
 
 });