cy
2023-10-27 1c50fb8dedaf13cb41f292a1a62b62055bc67f86
1
2
3
4
5
6
7
8
9
exports.notEmpty = name => {
  return v => {
    if (!v || v.trim === '') {
      return `${name} is required`
    } else {
      return true
    }
  }
}