How I test local variable declared inside function using jest

前端 未结 0 533
忘掉有多难
忘掉有多难 2021-01-11 11:49
function abc(){
   let b;
   const a = document.querySelector();
   //Suppose a is calculating width 
   if(a <768){
     b = true;
   }else{
     b = false;
   }         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题