var Total = Rows.count();
var NewTotal = NewRows.count();
Promise.all([ Total , NewTotal ]).then(function(lengths) {
expect(lengths[0]>= lengths[1]).toBeTruthy();
});
此测试失败Expected 16 to be greater than 16.
不确定如何更改此值以比较大于或等于。
答案 0 :(得分:1)
var Total = Rows.count();
var NewTotal = NewRows.count();
Promise.all([Total, NewTotal ]).then(function(lengths) {
expect(Total).not.to.be.lessThan(NewTotal);
});