Skip to content

Commit 0e7d0c3

Browse files
committed
fix: rename getInActiveUsers to getInactiveUsers for consistency
1 parent 9865a0d commit 0e7d0c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

infra/api/entities/users-api/Users.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ export class Users extends ApiClient {
4545
}
4646
}
4747

48-
async getInActiveUsers() {
48+
async getInactiveUsers() {
4949
let res = await this.getUserStatus('inactive')
5050
return res
5151
}
5252

5353
async deleteInactiveUsers() {
5454
let response: APIResponse | undefined
55-
let inActiveUsers = await this.getInActiveUsers()
55+
let inActiveUsers = await this.getInactiveUsers()
5656
for (let user of inActiveUsers) {
5757
response = await this.delete(`${this.usersEndpoint}/${user.id}`, { isAuthorizationRequired: true })
5858
}

tests/api_tests/users/UsersApiTests.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ test.describe('Api tests for GoRestApi endpoints', async () => {
4444
await test.step('make a request to delete all users that have an inactive status', async () => {
4545
let response = await usersApi.deleteInactiveUsers()
4646
expect(response?.status()).toBe(StatusCode.UNAUTHORIZED)
47-
let actualInactiveUsers = await usersApi.getInActiveUsers()
47+
let actualInactiveUsers = await usersApi.getInactiveUsers()
4848
let expectedInactiveUsersLength = actualInactiveUsers.length
4949
expect(expectedInactiveUsersLength).toBe(0)
5050
})

0 commit comments

Comments
 (0)