fixed front-end unit test textfield
This commit is contained in:
parent
8feba9f5eb
commit
d66383dced
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in New Issue