Print message on expect() assert failure

后端 未结 8 2188
一个人的身影
一个人的身影 2020-12-15 02:11

Is there a way to print a custom error message when a Jasmine expect() fails?

As an example, for end to end testing I have an array of web pages and I u

8条回答
  •  离开以前
    2020-12-15 02:54

    Jasmine 3.3 includes withContext as the officially supported way to specify additional information about the expectation without worrying about which matcher you are using.

提交回复
热议问题