|
@@ -7,7 +7,7 @@ import { KeyringPair } from '@polkadot/keyring/types'
|
|
|
|
|
|
export function createSimpleChannelFixture(api: QueryNodeApi): CreateChannelFixture {
|
|
|
const channelEntity: ChannelEntity = {
|
|
|
- title: 'Example channel',
|
|
|
+ handle: 'Example channel',
|
|
|
description: 'This is an example channel',
|
|
|
// We can use "existing" syntax to reference either an on-chain entity or other entity that's part of the same batch.
|
|
|
// Here we reference language that we assume was added by initialization script (initialize:dev), as it is part of
|
|
@@ -29,10 +29,10 @@ export default async function channelCreation(api: QueryNodeApi) {
|
|
|
await Utils.wait(120000)
|
|
|
|
|
|
// Ensure newly created channel was parsed by query node
|
|
|
- const result = await api.getChannelbyTitle(createChannelHappyCaseFixture.channelEntity.title)
|
|
|
+ const result = await api.getChannelbyTitle(createChannelHappyCaseFixture.channelEntity.handle)
|
|
|
const queriedChannel = result.data.channels[0]
|
|
|
|
|
|
- assert(queriedChannel.title === createChannelHappyCaseFixture.channelEntity.title, 'Should be equal')
|
|
|
+ assert(queriedChannel.title === createChannelHappyCaseFixture.channelEntity.handle, 'Should be equal')
|
|
|
assert(queriedChannel.description === createChannelHappyCaseFixture.channelEntity.description, 'Should be equal')
|
|
|
assert(queriedChannel.coverPhotoUrl === createChannelHappyCaseFixture.channelEntity.coverPhotoUrl, 'Should be equal')
|
|
|
assert(
|