修复test.ts的引用
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user