Kaynağa Gözat

updated tests/legacy/eventClick

kyle roux 8 yıl önce
ebeveyn
işleme
5b13d5bb8e
1 değiştirilmiş dosya ile 8 ekleme ve 10 silme
  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) {
 	it('works in month view', function(done) {
+		var options = {};
 		options.events = [
 		options.events = [
 			{ start: '2014-08-01', title: 'event1', className: 'event1' }
 			{ start: '2014-08-01', title: 'event1', className: 'event1' }
 		];
 		];
@@ -19,10 +16,11 @@ describe('eventClick', function() {
 		options.eventClick = function() {
 		options.eventClick = function() {
 			done();
 			done();
 		};
 		};
-		$('#cal').fullCalendar(options);
+		initCalendar(options);
 	});
 	});
 
 
 	it('works in month view via touch', function(done) {
 	it('works in month view via touch', function(done) {
+		var options = {};
 		options.events = [
 		options.events = [
 			{ start: '2014-08-01', title: 'event1', className: 'event1' }
 			{ start: '2014-08-01', title: 'event1', className: 'event1' }
 		];
 		];
@@ -32,7 +30,7 @@ describe('eventClick', function() {
 		options.eventClick = function() {
 		options.eventClick = function() {
 			done();
 			done();
 		};
 		};
-		$('#cal').fullCalendar(options);
+		initCalendar(options);
 	});
 	});
 
 
 });
 });