Browse Source

Yarn format

iorveth 4 years ago
parent
commit
c3684139e9

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

@@ -2038,8 +2038,8 @@ export class QueryNodeApi extends Api {
 
   public async getChannelbyTitle(title: string): Promise<ApolloQueryResult<any>> {
     const GET_CHANNEL_BY_TITLE = gql`
-    query($title: String!) {	
-        channels(where: {title_eq: $title} ) {
+      query($title: String!) {
+        channels(where: { title_eq: $title }) {
           title
           description
           coverPhotoUrl
@@ -2051,6 +2051,6 @@ export class QueryNodeApi extends Api {
       }
     `
 
-    return await this.queryNodeProvider.query({ query: GET_CHANNEL_BY_TITLE, variables: {title} })
-    }
+    return await this.queryNodeProvider.query({ query: GET_CHANNEL_BY_TITLE, variables: { title } })
+  }
 }

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

@@ -37,6 +37,9 @@ export default async function channelCreation(api: QueryNodeApi, pair: KeyringPa
   assert(queriedChannel.title === createChannelHappyCaseFixture.channelEntity.title, 'Should be equal')
   assert(queriedChannel.description === createChannelHappyCaseFixture.channelEntity.description, 'Should be equal')
   assert(queriedChannel.coverPhotoUrl === createChannelHappyCaseFixture.channelEntity.coverPhotoUrl, 'Should be equal')
-  assert(queriedChannel.avatarPhotoUrl === createChannelHappyCaseFixture.channelEntity.avatarPhotoURL, 'Should be equal')
+  assert(
+    queriedChannel.avatarPhotoUrl === createChannelHappyCaseFixture.channelEntity.avatarPhotoURL,
+    'Should be equal'
+  )
   assert(queriedChannel.isPublic === createChannelHappyCaseFixture.channelEntity.isPublic, 'Should be equal')
 }