From 1d8b10dc99eaf716a1efdc530654e94fe343214a Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Mon, 31 Aug 2015 20:35:23 -0500 Subject: [PATCH] Adjust formatting --- .../directives/focus-element.directive.js | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/test/spec/directives/focus-element.directive.js b/test/spec/directives/focus-element.directive.js index a67af9bc92..718d0efed4 100644 --- a/test/spec/directives/focus-element.directive.js +++ b/test/spec/directives/focus-element.directive.js @@ -15,19 +15,16 @@ describe('focusElement Directive', function() { scope.$digest(); })); - it('places focus on the element it is applied to when the expression it binds to evaluates to true', - inject(function($timeout) { - var focusSpy = sandbox.spy(); + it('places focus on the element it is applied to when the expression it binds to evaluates to true', inject(function($timeout) { + var focusSpy = sandbox.spy(); - elementToFocus.appendTo(document.body); - elementToFocus.on('focus', focusSpy); - scope.focusThisLink = true; - scope.$digest(); - - $timeout.flush(); - expect(document.activeElement.dataset.focusElement).to.eql("focusThisLink"); - expect(focusSpy).to.have.been.called; - }) - ); + elementToFocus.appendTo(document.body); + elementToFocus.on('focus', focusSpy); + scope.focusThisLink = true; + scope.$digest(); + $timeout.flush(); + expect(document.activeElement.dataset.focusElement).to.eql("focusThisLink"); + expect(focusSpy).to.have.been.called; + })); });