password-check
Ast Rule: try block
password-check
function visit() {
let password = 'mypassword';
if (password.length < 8) {
throw new Error('The password must be at least 8 characters long.');
}
}
test-1
Expected test result: no error
Ast Rule: try block
password-check
function visit() {
let password = 'mypassword';
if (password.length < 8) {
throw new Error('The password must be at least 8 characters long.');
}
}
test-1
Expected test result: no error