Fix names

This commit is contained in:
Pedro Silva 2022-12-06 16:16:07 +00:00
parent d2a8923d0d
commit c03ee6a613
1 changed files with 6 additions and 6 deletions

View File

@ -30,8 +30,8 @@ describe("Internal API - User Management & Permissions", () => {
await config.userManagement.addUsers(developer) await config.userManagement.addUsers(developer)
await config.userManagement.addUsers(appUser) await config.userManagement.addUsers(appUser)
const [allUsersResponse, allUsersData] = await config.userManagement.getAllUsers() const [allUsersResponse, allUsersJson] = await config.userManagement.getAllUsers()
expect(allUsersData.length).toBeGreaterThan(0) expect(allUsersJson.length).toBeGreaterThan(0)
@ -39,15 +39,15 @@ describe("Internal API - User Management & Permissions", () => {
it("Delete User", async () => { it("Delete User", async () => {
const appUser = generateAppUser() const appUser = generateAppUser()
const [userResponse, userData] = await config.userManagement.addUsers(appUser) const [userResponse, userJson] = await config.userManagement.addUsers(appUser)
const userId = userData.created.successful[0]._id const userId = userJson.created.successful[0]._id
await config.userManagement.deleteUser(<string>userId) await config.userManagement.deleteUser(<string>userId)
}) })
it("Reset Password", async () => { it("Reset Password", async () => {
const appUser = generateAppUser() const appUser = generateAppUser()
const [userResponse, userData] = await config.userManagement.addUsers(appUser) const [userResponse, userJson] = await config.userManagement.addUsers(appUser)
const [userInfoResponse, userInfoJson] = await config.userManagement.getUserInformation(userData.created.successful[0]._id) const [userInfoResponse, userInfoJson] = await config.userManagement.getUserInformation(userJson.created.successful[0]._id)
const body: User = { const body: User = {
...userInfoJson, ...userInfoJson,
password: "newPassword" password: "newPassword"