我正在做我的ember应用程序的集成测试,我的一个测试失败了,因为在我的测试运行后,promise解析了。My promise包装了一个动画事件(bs折叠)。* Closes the component DOM with collapse animation * @method 'animateClose' return new Ember.<
在创建新模型时,有没有办法处理500状态错误model.save().then(function() {
// this callback will not be executed if 500 status response但是,我可以在模型上使用becameError事件来捕获它,但在这种情况下,错误对象将不可用。