我期待在余烬测试指南时,打桩一项服务,它说做到以下几点当你想存根出服务 import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
import Ember from 'ember';
//Stub location service
const
我如何测试一个组件中调用的动作? 触发动作有多种方式,例如点击按钮。现在我想测试点击该按钮时调用的操作实际上是否被调用。像expect.functionName.to.be.called什么的。 我有以下代码 test('it closes the create dialog when close btn is clicked', function(assert) {
this.rend
我正在执行我的应用程序应用程序的集成测试,并且由于承诺在我的测试运行后解决,所以我的一个测试失败。我的承诺包装了一个动画事件(bs collapse)。下面是我想测试代码的一部分: //in my component
/**
* Closes the component DOM with collapse animation
*
* @method 'animateClose'
* @r
我有测试an addon通过铬,但失败phantomjs。 这似乎是一个类似于this question的问题。但是,我尝试了那里的解决方案,但它并不适合我。 该代码全部在上面链接的公共回购协议中可用。失败在github上构建失败的travis中展示。任何关于如何更好地诊断和修复的想法? 编辑 - 实际的错误信息 Died on test #1 at http://localhost:7357