Test
This commit is contained in:
parent
88e054c366
commit
3ed9c9a4a5
|
@ -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")
|
||||||
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue