Browse Source

Update tests

acerix 8 years ago
parent
commit
49b4c5ae22
1 changed files with 4 additions and 10 deletions
  1. 4 10
      tests/legacy/weekends.js

+ 4 - 10
tests/legacy/weekends.js

@@ -1,15 +1,10 @@
 
 describe('when weekends option is set', function() {
 
-	beforeEach(function() {
-		affix('#calendar');
-	});
-
 	it('should show sat and sun if true', function() {
-		var options = {
+		initCalendar({
 			weekends: true
-		};
-		$('#calendar').fullCalendar(options);
+		});
 		var sun = $('.fc-day-header.fc-sun')[0];
 		var sat = $('.fc-day-header.fc-sun')[0];
 		expect(sun).toBeDefined();
@@ -17,10 +12,9 @@ describe('when weekends option is set', function() {
 	});
 
 	it('should not show sat and sun if false', function() {
-		var options = {
+		initCalendar({
 			weekends: false
-		};
-		$('#calendar').fullCalendar(options);
+		});
 		var sun = $('.fc-day-header.fc-sun')[0];
 		var sat = $('.fc-day-header.fc-sun')[0];
 		expect(sun).not.toBeDefined();