This commit is contained in:
Adria Navarro 2024-07-03 12:15:56 +02:00
parent 88e054c366
commit 3ed9c9a4a5
1 changed files with 8 additions and 0 deletions

View File

@ -123,6 +123,14 @@ describe("UserDB", () => {
)
})
})
it("email cannot be updated by default", async () => {
await config.doInTenant(async () => {
await expect(
db.save({ ...user, email: generator.email({}) })
).rejects.toThrow("Email address cannot be changed")
})
})
})
})
})