#1304 Scroll Down en boton others client left menu
gitea/salix/dev This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2019-10-02 13:11:54 +02:00
parent 132cfef4e9
commit bae70e24f8
1 changed files with 3 additions and 1 deletions

View File

@ -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('<div></div>');
$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: []},