How to jasmine.getenv().currentspec with jasmine 2.3

℡╲_俬逩灬. 提交于 2019-12-04 16:12:59

It's likely that you are calling this from outside of the current spec. jasmine.getEnv().currentSpec will be null if there is no current spec, for example if it is called in afterAll or beforeAll blocks. Make sure that this code is invoked in the context of a spec.

I can't confirm that this is the problem without seeing more context, but this looks like it.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!