#796 Test front left-menu.js

This commit is contained in:
Carlos Jimenez Ruiz 2019-02-25 13:07:32 +01:00
parent 6d70a45f41
commit b5f29954ed
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,11 @@ describe('Component vnLeftMenu', () => {
]; ];
})); }));
it(`should set items in the controller for the left menu`, () => {
expect(controller.items.length).toEqual(3);
expect(controller.items[2].state).toEqual('client.card.summary');
});
describe('depth() setter', () => { describe('depth() setter', () => {
it(`should set depth property and call activateItem()`, () => { it(`should set depth property and call activateItem()`, () => {
spyOn(controller, 'activateItem'); spyOn(controller, 'activateItem');