Tarea #615 test multicheck
This commit is contained in:
parent
767a1b02d9
commit
a86120c055
|
@ -1,16 +1,18 @@
|
||||||
import './multi-check.js';
|
import './multi-check.js';
|
||||||
|
|
||||||
xdescribe('Component vnMultiCheck', () => {
|
describe('Component vnMultiCheck', () => {
|
||||||
let $componentController;
|
let $componentController;
|
||||||
let controller;
|
let controller;
|
||||||
|
let $element;
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
angular.mock.module('client');
|
angular.mock.module('ticket');
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(angular.mock.inject(_$componentController_ => {
|
beforeEach(angular.mock.inject(_$componentController_ => {
|
||||||
$componentController = _$componentController_;
|
$componentController = _$componentController_;
|
||||||
controller = $componentController('vnMultiCheck', {});
|
$element = angular.element(`<div class="shown"></div>`);
|
||||||
|
controller = $componentController('vnMultiCheck', {$element: $element});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
describe('checkAll() setter', () => {
|
describe('checkAll() setter', () => {
|
||||||
|
@ -25,7 +27,7 @@ xdescribe('Component vnMultiCheck', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('switchChecks()', () => {
|
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 = [
|
controller.data = [
|
||||||
{name: 'name'},
|
{name: 'name'},
|
||||||
{name: null}
|
{name: null}
|
||||||
|
|
Loading…
Reference in New Issue