You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In tests assertions are made using node.innerText.
Stronger assertions would be when comparing results on outerHTML level.
Consider below example:
valc=Var("")
vald=Var("")
valnode= span(c, d).render
assert(node.textContent =="") //this assertion is weaker than the below one
assert(node.outerHTML =="<span></span>")
Asserting assert(node.outerHTML == "<span></span>" will tell much more about what happened.
Are there any particular reasons for not using it? Sorry, I don't have much experience with "DOM API" ...
The text was updated successfully, but these errors were encountered:
In tests assertions are made using
node.innerText
.Stronger assertions would be when comparing results on
outerHTML
level.Consider below example:
Asserting
assert(node.outerHTML == "<span></span>"
will tell much more about what happened.Are there any particular reasons for not using it? Sorry, I don't have much experience with "DOM API" ...
The text was updated successfully, but these errors were encountered: