fix(core): update
This commit is contained in:
parent
c27fc147b5
commit
09b593e192
@ -98,7 +98,7 @@ interface IDemoReqRes {
|
||||
|
||||
tap.test('ReactionRequest and ReactionResponse should work', async () => {
|
||||
const reactionResponse = new smartuniverse.ReactionResponse<IDemoReqRes>({
|
||||
channels: [testClientUniverse.getChannel(testChannelData.channelName)],
|
||||
channels: [testUniverse.getChannel(testChannelData.channelName)],
|
||||
funcDef: async reqData => {
|
||||
console.log(reqData);
|
||||
return {
|
||||
|
@ -68,7 +68,7 @@ export class Universe {
|
||||
/**
|
||||
* returns a channel
|
||||
*/
|
||||
public getChannelByName(channelNameArg: string) {
|
||||
public getChannel(channelNameArg: string) {
|
||||
return this.universeCache.channelMap.find(channelArg => {
|
||||
return channelArg.name === channelNameArg;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user