Tarea #615 test multicheck
This commit is contained in:
parent
767a1b02d9
commit
a86120c055
|
@ -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(`<div class="shown"></div>`);
|
||||
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}
|
||||
|
|
Loading…
Reference in New Issue