All files / utils isValidPassword.js

100% Statements 2/2
100% Branches 3/3
100% Functions 1/1
100% Lines 2/2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16                  12x     1x      
/**
 * Use some basic rules to determine password validity/strength
 *
 * @category utils
 *
 * @param {String} [password=''] The input will be check against password rules
 * @return {Boolean} Is the in input a valid {string} password
 */
function isValidPassword(password = '') {
  return typeof password === 'string' && password.length > 7;
}
 
module.exports = {
  isValidPassword,
};