如何测试功能, 取决于在 Jasmine 单位测试中其他对象
原文:How to test function depending on other objects in jasmine unit test
原文:How to test function depending on other objects in jasmine unit test
我有一个称为“事件”的主干模型的茉莉元素测试。 在这个模型中,我有一个函数: 获取参与者: 函数 () { 新的 Myapp. 集聚。 用户集合( this. get (“ 参与”) )...