This commit is contained in:
Rory Powell 2022-12-01 15:02:05 +00:00
parent cd2eb2d283
commit dd452666b0
1 changed files with 10 additions and 2 deletions

View File

@ -276,7 +276,11 @@ describe("/api/global/users", () => {
await config.createSession(nonAdmin) await config.createSession(nonAdmin)
const newUser = structures.users.user() const newUser = structures.users.user()
await config.api.users.saveUser(newUser, 403, config.authHeaders(nonAdmin)) await config.api.users.saveUser(
newUser,
403,
config.authHeaders(nonAdmin)
)
}) })
}) })
@ -440,7 +444,11 @@ describe("/api/global/users", () => {
const nonAdmin = await config.createUser(structures.users.builderUser()) const nonAdmin = await config.createUser(structures.users.builderUser())
await config.createSession(nonAdmin) await config.createSession(nonAdmin)
await config.api.users.saveUser(existingUser, 200, config.authHeaders(nonAdmin)) await config.api.users.saveUser(
existingUser,
200,
config.authHeaders(nonAdmin)
)
}) })
}) })