Skip to content

Commit

Permalink
test: add more group tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HonoluluHenk authored and NoNameProvided committed Jul 19, 2018
1 parent 5b14592 commit ebbfcb6
Show file tree
Hide file tree
Showing 2 changed files with 354 additions and 82 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,13 @@ validate(user, {
groups: ["registration", "admin"]
}); // this will not pass validation
validate(user, {
groups: undefined // the default
}); // this will not pass validation since all properties get validated regardless of their groups
validate(user, {
groups: []
}); // this will not pass validation
}); // this will not pass validation, (equivalent to 'groups: undefined', see above)
```

There is also a special flag `always: true` in validation options that you can use. This flag says that this validation
Expand Down
Loading

0 comments on commit ebbfcb6

Please sign in to comment.