mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
Adjust formatting
This commit is contained in:
@@ -15,8 +15,7 @@ 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) {
|
||||
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);
|
||||
@@ -27,7 +26,5 @@ describe('focusElement Directive', function() {
|
||||
$timeout.flush();
|
||||
expect(document.activeElement.dataset.focusElement).to.eql("focusThisLink");
|
||||
expect(focusSpy).to.have.been.called;
|
||||
})
|
||||
);
|
||||
|
||||
}));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user