【发布时间】:2015-09-16 08:49:38
【问题描述】:
我想测试我的 ember 组件。我没有使用 ember-cli。我遵循了 ember 指南中给出的内容。但是 this.subject() 方法是未定义的。 另外,我收到以下错误
setUp failed on <test-case-name> : assert.async is not a function
Died on test #2 : this.render is not a function
TearDown Failed on <test-case-name> : assert.async is not a function
我没有使用任何异步函数。在我的测试用例中,我只写了一行 this.render() 。
提前致谢, 库卡
【问题讨论】:
-
2.0 指南使用 ember-cli。
标签: testing ember.js components