测试:删掉部分注释,修改用例名

This commit is contained in:
liangtongchuan
2021-03-05 10:51:19 +08:00
parent ca2d597947
commit cf2ee12445
6 changed files with 27 additions and 22 deletions
+1 -6
View File
@@ -1,13 +1,9 @@
import { PrivateMessageParam, PrivateMessageType } from './../app/db/PrivateMessage';
import { DEFAULT_MSG_PER_PAGE, MSG_TYPE, ON_MSG_ROUTE } from './../app/consts';
import { indexOf } from 'underscore';
import { COM_TEAM_STATUS, DEFAULT_HEROES } from './../../shared/consts/consts';
import { Client } from './Client';
import { COM_BTL_QUALITY } from './../app/consts/constModules/itemConst';
import 'mocha';
import { PinusWSClient } from 'pinus-robot-plugin';
import { expect } from 'chai';
import { checkDisplayItems, checkSuccessResponse } from './CheckPatten';
import { checkSuccessResponse } from './CheckPatten';
const TEXT_MSG = {type: MSG_TYPE.TEXT, content: 'hello world'}
@@ -46,7 +42,6 @@ describe('聊天测试', function() {
it('两个玩家互相发送', function(done) {
pinusClientT.on(ON_MSG_ROUTE, (msg) => {
console.log(ON_MSG_ROUTE , msg);
checkSuccessResponse(msg);
expect(msg.data.content).to.equal(TEXT_MSG.content);
});