测试:删除log
This commit is contained in:
@@ -72,21 +72,17 @@ describe('拍卖行测试', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
after(function (done) {
|
after(function (done) {
|
||||||
console.log('ddddddddddddddddddd');
|
|
||||||
pinusClient.disconnect();
|
pinusClient.disconnect();
|
||||||
pinusClientT.disconnect();
|
pinusClientT.disconnect();
|
||||||
// disconnect 后等待 500ms,供服务器清理环境、退出频道等
|
// disconnect 后等待 500ms,供服务器清理环境、退出频道等
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
done();
|
done();
|
||||||
console.log('ddddddddddddddddddd 1111');
|
|
||||||
}, 500);
|
}, 500);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('添加拍品', function (done) {
|
it('添加拍品', function (done) {
|
||||||
const sourceCode = Math.random().toString(36).slice(-8);
|
const sourceCode = Math.random().toString(36).slice(-8);
|
||||||
console.log('XXXXXXXXXXXXXXXXX 1 ');
|
|
||||||
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, rewards: [{ id: GOOD_ID_TIEJIAN, count: 1 }, { id: GOOD_ID_GANGJIAN, count: 2 }] }, (res) => {
|
||||||
console.log('XXXXXXXXXXXXXXXXX 1 ', JSON.stringify(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) {
|
||||||
@@ -97,10 +93,8 @@ describe('拍卖行测试', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('获取拍卖行数据', function (done) {
|
it('获取拍卖行数据', function (done) {
|
||||||
console.log('XXXXXXXXXXXXXXXXX 2 ', '获取拍卖行数据')
|
|
||||||
try {
|
try {
|
||||||
pinusClient.request('battle.auctionHandler.getAuction', {}, (res) => {
|
pinusClient.request('battle.auctionHandler.getAuction', {}, (res) => {
|
||||||
console.log('XXXXXXXXXXXXXXXXX 2 ', JSON.stringify(res))
|
|
||||||
checkSuccessResponse(res);
|
checkSuccessResponse(res);
|
||||||
|
|
||||||
expect(res.data.lots).to.be.an('array');
|
expect(res.data.lots).to.be.an('array');
|
||||||
@@ -118,7 +112,6 @@ describe('拍卖行测试', function () {
|
|||||||
it('出价,竞价和一口价', function (done) {
|
it('出价,竞价和一口价', function (done) {
|
||||||
let gid = null;
|
let gid = null;
|
||||||
pinusClient.on('onEquipAdd', (res) => {
|
pinusClient.on('onEquipAdd', (res) => {
|
||||||
console.log('XXXXXXXXXXXXXXXXX 3', JSON.stringify(res))
|
|
||||||
checkSuccessResponse(res);
|
checkSuccessResponse(res);
|
||||||
expect(res.data.equipInfos).to.be.an('array');
|
expect(res.data.equipInfos).to.be.an('array');
|
||||||
for (let info of res.data.equipInfos) {
|
for (let info of res.data.equipInfos) {
|
||||||
@@ -143,7 +136,6 @@ describe('拍卖行测试', function () {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
pinusClient.request('battle.auctionHandler.offer', { code: unsoldLots[0].code, max: false }, (res) => {
|
pinusClient.request('battle.auctionHandler.offer', { code: unsoldLots[0].code, max: false }, (res) => {
|
||||||
console.log('XXXXXXXXXXXXXXXXX 4 ', JSON.stringify(res))
|
|
||||||
checkSuccessResponse(res);
|
checkSuccessResponse(res);
|
||||||
checkLot(res.data.lot);
|
checkLot(res.data.lot);
|
||||||
if (res.data.dividend) {
|
if (res.data.dividend) {
|
||||||
@@ -160,7 +152,6 @@ describe('拍卖行测试', function () {
|
|||||||
}
|
}
|
||||||
gid = unsoldLots[0].gid;
|
gid = unsoldLots[0].gid;
|
||||||
pinusClient.request('battle.auctionHandler.offer', { code: unsoldLots[0].code, max: true }, (res) => {
|
pinusClient.request('battle.auctionHandler.offer', { code: unsoldLots[0].code, max: true }, (res) => {
|
||||||
console.log('XXXXXXXXXXXXXXXXX 5 ', JSON.stringify(res))
|
|
||||||
checkSuccessResponse(res);
|
checkSuccessResponse(res);
|
||||||
checkLot(res.data.lot);
|
checkLot(res.data.lot);
|
||||||
checkDividend(res.data.dividend);
|
checkDividend(res.data.dividend);
|
||||||
@@ -174,7 +165,6 @@ describe('拍卖行测试', function () {
|
|||||||
|
|
||||||
it('关注后取关', function (done) {
|
it('关注后取关', function (done) {
|
||||||
pinusClient.request('battle.auctionHandler.getAuction', {}, (res) => {
|
pinusClient.request('battle.auctionHandler.getAuction', {}, (res) => {
|
||||||
console.log('XXXXXXXXXXXXXXXXX 6 ', JSON.stringify(res))
|
|
||||||
checkSuccessResponse(res);
|
checkSuccessResponse(res);
|
||||||
expect(res.data.lots).to.be.an('array');
|
expect(res.data.lots).to.be.an('array');
|
||||||
checkLots(res.data.lots);
|
checkLots(res.data.lots);
|
||||||
@@ -202,7 +192,6 @@ describe('拍卖行测试', function () {
|
|||||||
|
|
||||||
it('查看分红', function (done) {
|
it('查看分红', function (done) {
|
||||||
pinusClient.request('battle.auctionHandler.checkDividend', {}, (res) => {
|
pinusClient.request('battle.auctionHandler.checkDividend', {}, (res) => {
|
||||||
console.log('XXXXXXXXXXXXXXXXX 7 ', JSON.stringify(res))
|
|
||||||
checkSuccessResponse(res);
|
checkSuccessResponse(res);
|
||||||
checkDividends(res.data.dividends);
|
checkDividends(res.data.dividends);
|
||||||
done();
|
done();
|
||||||
|
|||||||
Reference in New Issue
Block a user