Skip to content

Commit 71cd3e1

Browse files
committed
CCM-10893 Rename variable
1 parent 5cdb729 commit 71cd3e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/accessibility/test-user-client.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ export class TestUserClient {
2121
constructor(
2222
private readonly userPoolId: string,
2323
private readonly clientSsmPathPrefix: string
24-
) {}
24+
) { }
2525

2626
async createTestUser(
2727
email: string,
2828
password: string,
2929
clientId: string,
3030
clientName: string = 'NHS Client accessibility',
31-
userName: [string, string] | [string, string, string] = [
31+
displayUsernameParts: [string, string] | [string, string, string] = [
3232
'Dr',
3333
'Test',
3434
'User',
@@ -55,9 +55,9 @@ export class TestUserClient {
5555
{ Name: 'email_verified', Value: 'true' },
5656
{ Name: 'custom:sbx_client_id', Value: clientId },
5757
{ Name: 'custom:sbx_client_name', Value: clientName },
58-
{ Name: 'given_name', Value: userName.at(-2) },
59-
{ Name: 'family_name', Value: userName.at(-1) },
60-
{ Name: 'preferred_username', Value: userName.join(' ') },
58+
{ Name: 'given_name', Value: displayUsernameParts.at(-2) },
59+
{ Name: 'family_name', Value: displayUsernameParts.at(-1) },
60+
{ Name: 'preferred_username', Value: displayUsernameParts.join(' ') },
6161
],
6262
MessageAction: 'SUPPRESS',
6363
})

0 commit comments

Comments
 (0)