From bae70e24f81a3e81e192742170882568b442014d Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Ruiz Date: Wed, 2 Oct 2019 13:11:54 +0200 Subject: [PATCH] #1304 Scroll Down en boton others client left menu --- front/salix/components/left-menu/left-menu.spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/front/salix/components/left-menu/left-menu.spec.js b/front/salix/components/left-menu/left-menu.spec.js index 73ce5f7deb..76a6d10f8d 100644 --- a/front/salix/components/left-menu/left-menu.spec.js +++ b/front/salix/components/left-menu/left-menu.spec.js @@ -2,16 +2,18 @@ import './left-menu.js'; describe('Component vnLeftMenu', () => { let controller; + let $element; beforeEach(angular.mock.module('salix', $translateProvider => { $translateProvider.translations('en', {}); })); beforeEach(angular.mock.inject(($componentController, $state, $window) => { + $element = angular.element('
'); $state.current.name = 'client.card.summary'; $state.current.data = {moduleIndex: 0}; $window.routes = [{menu: []}]; - controller = $componentController('vnLeftMenu', {$state, $window}); + controller = $componentController('vnLeftMenu', {$state, $window, $element}); controller.items = [ {description: 'Client', state: 'client', icon: null, childs: []}, {description: 'Client', state: 'client.card', icon: null, childs: []},