removed unused code from the compile method on focus front unit tests

This commit is contained in:
Carlos Jimenez 2018-02-01 11:28:41 +01:00
parent 03116ed595
commit 4a2418eb7c
1 changed files with 0 additions and 2 deletions

View File

@ -12,8 +12,6 @@ describe('Directive focus', () => {
$scope = $rootScope.$new(); $scope = $rootScope.$new();
$element = angular.element(_element); $element = angular.element(_element);
if (_childElement) { if (_childElement) {
let childElement = angular.element(_childElement);
$element[0] < childElement;
$element[0].firstChild.focus = jasmine.createSpy(focus); $element[0].firstChild.focus = jasmine.createSpy(focus);
} }
$element[0].focus = jasmine.createSpy('focus'); $element[0].focus = jasmine.createSpy('focus');