From c03ee6a61369c6c71a8cf2b89a90eea263bb010f Mon Sep 17 00:00:00 2001 From: Pedro Silva Date: Tue, 6 Dec 2022 16:16:07 +0000 Subject: [PATCH] Fix names --- .../userManagement/userManagement.spec.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qa-core/src/tests/internal-api/userManagement/userManagement.spec.ts b/qa-core/src/tests/internal-api/userManagement/userManagement.spec.ts index 1f5ac695a9..faea247204 100644 --- a/qa-core/src/tests/internal-api/userManagement/userManagement.spec.ts +++ b/qa-core/src/tests/internal-api/userManagement/userManagement.spec.ts @@ -30,8 +30,8 @@ describe("Internal API - User Management & Permissions", () => { await config.userManagement.addUsers(developer) await config.userManagement.addUsers(appUser) - const [allUsersResponse, allUsersData] = await config.userManagement.getAllUsers() - expect(allUsersData.length).toBeGreaterThan(0) + const [allUsersResponse, allUsersJson] = await config.userManagement.getAllUsers() + expect(allUsersJson.length).toBeGreaterThan(0) @@ -39,15 +39,15 @@ describe("Internal API - User Management & Permissions", () => { it("Delete User", async () => { const appUser = generateAppUser() - const [userResponse, userData] = await config.userManagement.addUsers(appUser) - const userId = userData.created.successful[0]._id + const [userResponse, userJson] = await config.userManagement.addUsers(appUser) + const userId = userJson.created.successful[0]._id await config.userManagement.deleteUser(userId) }) it("Reset Password", async () => { const appUser = generateAppUser() - const [userResponse, userData] = await config.userManagement.addUsers(appUser) - const [userInfoResponse, userInfoJson] = await config.userManagement.getUserInformation(userData.created.successful[0]._id) + const [userResponse, userJson] = await config.userManagement.addUsers(appUser) + const [userInfoResponse, userInfoJson] = await config.userManagement.getUserInformation(userJson.created.successful[0]._id) const body: User = { ...userInfoJson, password: "newPassword"