What's a good way to reuse test code using Jasmine?

前端 未结 8 598
無奈伤痛
無奈伤痛 2020-12-05 07:01

I\'m using the Jasmine BDD Javascript library and really enjoying it. I have test code that I\'d like to reuse (for example, testing multiple implementations of a base clas

8条回答
  •  情深已故
    2020-12-05 07:45

    It was pointed out to me to wrap a describe call in a function that passes it a parameter.

提交回复
热议问题