测试:拍卖行出价
This commit is contained in:
@@ -142,8 +142,7 @@ describe('拍卖行测试', function () {
|
|||||||
checkDividend(res.data.dividend);
|
checkDividend(res.data.dividend);
|
||||||
}
|
}
|
||||||
expect(res.data.lot.curBuyer).to.be.equal(roleInfo.roleId);
|
expect(res.data.lot.curBuyer).to.be.equal(roleInfo.roleId);
|
||||||
done();
|
|
||||||
});
|
|
||||||
unsoldLots.shift();
|
unsoldLots.shift();
|
||||||
if (unsoldLots.length === 0) {
|
if (unsoldLots.length === 0) {
|
||||||
console.warn('没有测试一口价的情况');
|
console.warn('没有测试一口价的情况');
|
||||||
@@ -154,11 +153,14 @@ describe('拍卖行测试', function () {
|
|||||||
pinusClient.request('battle.auctionHandler.offer', { code: unsoldLots[0].code, max: true }, (res) => {
|
pinusClient.request('battle.auctionHandler.offer', { code: unsoldLots[0].code, max: true }, (res) => {
|
||||||
checkSuccessResponse(res);
|
checkSuccessResponse(res);
|
||||||
checkLot(res.data.lot);
|
checkLot(res.data.lot);
|
||||||
|
if(res.data.dividend) {
|
||||||
checkDividend(res.data.dividend);
|
checkDividend(res.data.dividend);
|
||||||
|
}
|
||||||
expect(res.data.lot.curBuyer).to.be.equal(roleInfo.roleId);
|
expect(res.data.lot.curBuyer).to.be.equal(roleInfo.roleId);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
done();
|
done();
|
||||||
}, 100);
|
}, 1000);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user