jest expect结果为多个值怎么书写?
比如
```
function random (n = 2) {
return Math.floor((Math.random()*n+1))
}


// jest中:


expect(random()).toBe(1 or 2)
```


期待的值可能是数组
展开
评论