diff --git a/client/core/src/components/multi-check/multi-check.spec.js b/client/core/src/components/multi-check/multi-check.spec.js index e7855449f..86bc7e72f 100644 --- a/client/core/src/components/multi-check/multi-check.spec.js +++ b/client/core/src/components/multi-check/multi-check.spec.js @@ -1,16 +1,18 @@ import './multi-check.js'; -xdescribe('Component vnMultiCheck', () => { +describe('Component vnMultiCheck', () => { let $componentController; let controller; + let $element; beforeEach(() => { - angular.mock.module('client'); + angular.mock.module('ticket'); }); beforeEach(angular.mock.inject(_$componentController_ => { $componentController = _$componentController_; - controller = $componentController('vnMultiCheck', {}); + $element = angular.element(`
`); + controller = $componentController('vnMultiCheck', {$element: $element}); })); describe('checkAll() setter', () => { @@ -25,7 +27,7 @@ xdescribe('Component vnMultiCheck', () => { }); describe('switchChecks()', () => { - it(`should set checked property inside each existing elemenet when id begings with no-`, () => { + it(`should set checked property inside each existing element`, () => { controller.data = [ {name: 'name'}, {name: null}