![]() |
1
1
在JavaScript中,不可能处理像这样抛出的错误
|
![]() |
2
1
看: https://jestjs.io/docs/en/expect#tothrowerror 我希望您需要将函数调用包装在一个函数中。 比如:
|