How do I test in one assertion with chai that object exists and method return value?

前端 未结 0 1667
粉色の甜心
粉色の甜心 2020-12-22 07:13

I have an variable and it can be undefined how to test that object present and method return value If I do it in two lines

const object: Object|undefined 
exp         


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