Skip to content

Commit 8557f7a

Browse files
committed
CCM-14169: typecheck fix
1 parent 450c541 commit 8557f7a

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

tests/test-team/helpers/auth/cognito-auth-helper.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,10 @@ export class CognitoAuthHelper {
524524
return id;
525525
}
526526

527+
public async getClient(clientId: string) {
528+
return this.notifyClientHelper.getClient(clientId);
529+
}
530+
527531
public async getStaticClient(clientKey: ClientKey) {
528532
const id = this.notifyClientHelper.clientIdFromKey(clientKey);
529533
return this.notifyClientHelper.getClient(id);

tests/test-team/template-mgmt-api-tests/get-client-configuration.api.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,14 @@ test.describe('GET /v1/client-configuration', () => {
5353
},
5454
});
5555

56+
const client = await authHelper.getClient(userWithClientConfig.clientId);
57+
5658
expect(response.status()).toBe(200);
5759
expect(await response.json()).toEqual({
5860
statusCode: 200,
5961
clientConfiguration: {
60-
campaignIds: userWithClientConfig.campaignIds,
61-
features: testClients[userWithClientConfig.clientKey]?.features,
62+
campaignIds: client?.campaignIds,
63+
features: client?.features,
6264
},
6365
});
6466
});

0 commit comments

Comments
 (0)