Browse Source

Cont_dir_integration_testing: Minor query fix

iorveth 4 years ago
parent
commit
17af390973

+ 1 - 1
tests/network-tests/src/Api.ts

@@ -2028,7 +2028,7 @@ export class QueryNodeApi extends Api {
   public async getChannelbyTitle(channel_title: string): Promise<ApolloQueryResult<any>> {
     const GET_CHANNEL_BY_TITLE = gql`
       query getChannelbyTitle($title: String) {
-        channels(title: $title) {
+        channel(title: $title) {
           title
           description
           language

+ 1 - 1
tests/network-tests/src/flows/contentDirectory/creatingChannel.ts

@@ -28,7 +28,7 @@ export default async function channelCreation(api: QueryNodeApi, pair: KeyringPa
 
   assert(data.title === createChannelHappyCaseFixture.channelEntity.title, "Should be equal")
   assert(data.description === createChannelHappyCaseFixture.channelEntity.description, "Should be equal")
-  assert(data.language === createChannelHappyCaseFixture.channelEntity.language?.toString(), "Should be equal")
+  assert(data.language === createChannelHappyCaseFixture.channelEntity.language as unknown as string, "Should be equal")
   assert(data.coverPhotoUrl === createChannelHappyCaseFixture.channelEntity.coverPhotoUrl, "Should be equal")
   assert(data.avatarPhotoURL === createChannelHappyCaseFixture.channelEntity.avatarPhotoURL, "Should be equal")
   assert(data.isPublic === createChannelHappyCaseFixture.channelEntity.isPublic.toString(), "Should be equal")