mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-07-13 01:59:37 -04:00
test that password is at least 8 characters
This commit is contained in:
parent
60fcda322e
commit
490f1e8c22
1 changed files with 8 additions and 0 deletions
|
@ -427,6 +427,14 @@ test("Can manage an account (CI)", async () => {
|
||||||
assert.equal(err.message, "Incorrect password");
|
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
|
// change password
|
||||||
const newPassword = "newPassword";
|
const newPassword = "newPassword";
|
||||||
await user3.changePassword(password, newPassword);
|
await user3.changePassword(password, newPassword);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue