Skip to content

Commit

Permalink
fix(condo) DOMA-7397: maketypes && additional guard
Browse files Browse the repository at this point in the history
  • Loading branch information
toplenboren committed Mar 13, 2024
1 parent 147f433 commit 10e50ff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ describe('GetNewsSharingRecipientsService', () => {
test('Admin can execute query', async () => {
const [data, attrs] = await getNewsSharingRecipientsByTestClient(adminClient, dummyB2BContextWithNewsSharingConfig)

// If you are changing this test, that means you have changed schema of getRecipients.
// You need to make sure our integrations sustain this change!
expect(data[0]).toHaveProperty('id')
expect(data[0]).toHaveProperty('name')
expect(data[0]).toHaveProperty('receiversCount')

expect(data).toMatchObject(SUCCESS_GET_RECIPIENTS_RESULT)
})

Expand Down
2 changes: 1 addition & 1 deletion apps/condo/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -73678,7 +73678,7 @@ input GetNewsSharingRecipientsInput {
type GetNewsSharingRecipientsOutput {
id: String!
name: String!
recipients: Int
receiversCount: Int
}

enum AppCategory {
Expand Down
2 changes: 1 addition & 1 deletion apps/condo/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22931,7 +22931,7 @@ export type GetNewsSharingRecipientsOutput = {
__typename?: 'GetNewsSharingRecipientsOutput';
id: Scalars['String'];
name: Scalars['String'];
recipients?: Maybe<Scalars['Int']>;
receiversCount?: Maybe<Scalars['Int']>;
};

export enum GetOverviewDashboardAggregatePeriod {
Expand Down

0 comments on commit 10e50ff

Please sign in to comment.