updated2 hey,
I moved the grid value in a new mthod carSource so the previous error I removed but right now I am getting another error,
- is there any way I can spy on _dataSource or mock the
所以在我的工厂中,我有一个请求HTTP调用并将它们添加到承诺数组的循环。 然后我对结果做了$q.all来构建模型。 当我来测试这个,但我不能让HTTP来做所有的调用,它只做最后一个,我需要它做所有的调用和建立模型。 下面是非常削减代码,(我用7个日期,但想保持的东西短) 工厂代号 function getLatestData(){
var dateArray= ['2017-09-21'
我有以下代码: it('Should be able to sign in', function() {
// Find page elements
var userNameField = browser.findElement(By.id('email'));
var userPassField = browser.findElement(By.id('passwo