Ember运行循环在测试中忽略pauseFor()

时间:2017-08-06 18:08:12

标签: javascript ember.js promise

我有一个验收测试,它会导致以下错误:

font-size

当我在run函数中包装我的代码时,忽略pauseFor和任何mouseEvents。

Assertion failed: You have turned on testing mode, which disabled the run loop's autorun. You will need to wrap any code with asynchronous side-effects in an Ember.run

如何防止此错误发生?

0 个答案:

没有答案