修改聊天和拍卖的两个测试用例报错

This commit is contained in:
liangtongchuan
2022-05-21 19:56:12 +08:00
parent 8a58435283
commit 48a87b3023
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -123,7 +123,8 @@ describe('拍卖行测试', function () {
done();
return;
}
let unsoldLots = res.data.lots.filter(lot => { return lot.status !== LOT_STATUS.SOLD && lot.curBuyer !== roleInfo.roleId });
const curTime = new Date();
let unsoldLots = res.data.lots.filter(lot => { return lot.status !== LOT_STATUS.SOLD && lot.curBuyer !== roleInfo.roleId && lot.end <= curTime });
if (unsoldLots.length === 0) {
console.warn('没有可出价的拍品');
done();