From 2bfce758362f3450c613b3501184905fc5bd7cb1 Mon Sep 17 00:00:00 2001 From: David Asabina Date: Mon, 19 May 2014 00:55:29 +0200 Subject: [PATCH] Wasting a minute or two trying to whitespace my test consistent to the other tests --- tests/automated/buttonText.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/automated/buttonText.js b/tests/automated/buttonText.js index f62c4c5..7aa8657 100644 --- a/tests/automated/buttonText.js +++ b/tests/automated/buttonText.js @@ -1,4 +1,3 @@ - describe('button text', function() { var settings = {}; @@ -15,6 +14,7 @@ describe('button text', function() { }); describe('with buttonIcons', function() { + describe('when lang is default', function() { it('should have no text', function() { expect($('.fc-button-next')).toHaveText(''); @@ -57,7 +57,9 @@ describe('button text', function() { }); }); }); + describe('without buttonIcons', function() { + beforeEach(function() { settings.buttonIcons = { prev: null, @@ -68,6 +70,7 @@ describe('button text', function() { }); describe('when lang is default', function() { + beforeEach(function() { $('#cal').fullCalendar(settings); }); @@ -91,6 +94,7 @@ describe('button text', function() { }); describe('when buttonText is specified', function() { + beforeEach(function() { settings.buttonText = { prev: '<-', @@ -143,4 +147,5 @@ describe('button text', function() { }); }); }); + });