修复test.ts的引用

This commit is contained in:
luying
2022-04-09 11:04:28 +08:00
parent 12d47ec881
commit a23759335e
3 changed files with 27 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
import { PinusWSClient } from 'pinus-robot-plugin';
import { expect } from 'chai';
import { checkSuccessResponse, checkRoleInfo } from './CheckPatten';
import { DEBUG_MAGIC_WORD, ON_ADD_CHANNEL_ROUTE, STATUS } from '../app/consts';
import { DEBUG_MAGIC_WORD, PUSH_ROUTE, STATUS } from '../app/consts';
import { genCode } from '../app/pubUtils/util';
const request = require('request');
const crypto = require('crypto');
@@ -61,7 +61,7 @@ export class Client {
port: port
}, (data) => {
// 连接成功执行函数
this._client.on(ON_ADD_CHANNEL_ROUTE, (msg) => {
this._client.on(PUSH_ROUTE.ADD_CHANNEL, (msg) => {
checkSuccessResponse(msg);
expect(msg.data.roleId).to.be.a('string');
expect(msg.data.channelName).to.be.a('string');