check-username
Ast Rule: try block
check-username
function visit() {
let username = 'myusername';
if (!username.includes('@')) {
throw new Error('The username must include an "@" symbol.');
}
}
test-1.js
Expected test result: no error
Ast Rule: try block
check-username
function visit() {
let username = 'myusername';
if (!username.includes('@')) {
throw new Error('The username must include an "@" symbol.');
}
}
test-1.js
Expected test result: no error