【发布时间】:2014-05-29 09:38:46
【问题描述】:
函数是,
function checkCond(a, b){
if(a===true){
if(b===true){
document.getElementById("theId").innerHtml = "success";
}
else if(b===false){
document.getElementById("theId").innerHtml = "Fails";
}
else{
document.getElementById("theId").innerHtml = "Required";
}
}
else{
if(b===true){
document.getElementById("theId").innerHtml = "success";
}
}
}
jasmine test 上面的循环函数怎么写?
【问题讨论】:
标签: javascript unit-testing jasmine