Tarea #615 test multicheck

This commit is contained in:
gerard 2018-09-06 16:38:49 +02:00
parent 767a1b02d9
commit a86120c055
1 changed files with 6 additions and 4 deletions

View File

@ -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}