fixed front-end unit test textfield

This commit is contained in:
Joan Sanchez 2018-09-14 11:01:56 +02:00
parent 8feba9f5eb
commit d66383dced
1 changed files with 0 additions and 28 deletions

View File

@ -30,34 +30,6 @@ describe('Component vnTextfield', () => {
});
});
describe('leftIcons() setter', () => {
it(`should append childs of a given element to div.leftIcons`, () => {
let div = document.createElement("div");
let p = document.createElement("p");
let text = document.createTextNode("Mariano");
p.appendChild(text);
div.appendChild(p);
controller.leftIcons = div;
expect(controller.element.innerHTML).toContain(p.innerHTML);
});
});
describe('rightIcons() setter', () => {
it(`should append childs of a given element to div.rightIcons`, () => {
let div = document.createElement("div");
let p = document.createElement("p");
let text = document.createTextNode("Mariano");
p.appendChild(text);
div.appendChild(p);
controller.rightIcons = div;
expect(controller.element.innerHTML).toContain(p.innerHTML);
});
});
describe('value() setter', () => {
it(`should set _value, input.value and hasValue properties to null, '' and false`, () => {
let testValue = '';