fix: removed channel from user e2e tests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user