测试:修改拍卖行debug接口
This commit is contained in:
@@ -82,7 +82,7 @@ describe('拍卖行测试', function () {
|
|||||||
|
|
||||||
it('添加拍品', function (done) {
|
it('添加拍品', function (done) {
|
||||||
const sourceCode = Math.random().toString(36).slice(-8);
|
const sourceCode = Math.random().toString(36).slice(-8);
|
||||||
pinusClient.request('battle.auctionHandler.debugAddLots', { magicWord: DEBUG_MAGIC_WORD, sourceType: AUCTION_SOURCE.GATE, sourceCode, rewards: [{ id: GOOD_ID_TIEJIAN, count: 1 }, { id: GOOD_ID_GANGJIAN, count: 2 }] }, (res) => {
|
pinusClient.request('battle.auctionHandler.debugAddLots', { magicWord: DEBUG_MAGIC_WORD, sourceType: AUCTION_SOURCE.GATE, sourceCode, poolId: 1 }, (res) => {
|
||||||
checkSuccessResponse(res);
|
checkSuccessResponse(res);
|
||||||
expect(res.data.lots).to.be.an('array');
|
expect(res.data.lots).to.be.an('array');
|
||||||
for (let lot of res.data.lots) {
|
for (let lot of res.data.lots) {
|
||||||
|
|||||||
Reference in New Issue
Block a user