fix: removed channel from user e2e tests

This commit is contained in:
montaghanmy
2023-04-07 11:32:28 +01:00
parent c97ec52a11
commit c4b9fba621
2 changed files with 1 additions and 106 deletions
@@ -15,8 +15,6 @@ import Repository from "../../src/core/platform/services/database/services/orm/r
import Device from "../../src/services/user/entities/device";
import gr from "../../src/services/global-resolver";
import { Channel } from "../../src/services/channels/entities";
import { get as getChannelUtils } from "./channels/utils";
export type uuid = string;
@@ -259,15 +257,4 @@ export class TestDbService {
defaultWorkspace() {
return this.workspaces[0].workspace;
}
async createChannel(userId): Promise<Channel> {
const channelUtils = getChannelUtils(this.testPlatform);
const channel = channelUtils.getChannel(userId);
const creationResult = await gr.services.channels.channels.save(
channel,
{},
channelUtils.getContext({ id: userId }),
);
return creationResult.entity;
}
}