mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-02-05 17:25:20 -05:00
test that password is at least 8 characters
This commit is contained in:
parent
60fcda322e
commit
490f1e8c22
@ -427,6 +427,14 @@ test("Can manage an account (CI)", async () => {
|
||||
assert.equal(err.message, "Incorrect password");
|
||||
}
|
||||
|
||||
// try setting password below minimum length
|
||||
try {
|
||||
await user3.changePassword(password, "abc123");
|
||||
throw new Error("Should have failed setting password below minimum length")
|
||||
} catch (err: any) {
|
||||
assert.equal(err.message, "Password must be at least 8 characters");
|
||||
}
|
||||
|
||||
// change password
|
||||
const newPassword = "newPassword";
|
||||
await user3.changePassword(password, newPassword);
|
||||
|
Loading…
x
Reference in New Issue
Block a user