0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00
ghost/test/unit/data
Hannah Wolfe 1688b17c49
Refactored + cleaned up validation tools
- General code cleanup
- Removed unused notContains rule
- Swapped custom empty rule for builtin isEmpty rule
- Dropped usage of .extend on validator, as this was removed 2 years ago!
   - This will allow us to upgrade the validator dependency to a much newer version
- Changed our internal validator module to only expose the functions we use.
   - This gives us a clearer Public API
   - It makes it easier to see if we are affected by changes in validator
   - It's still easy to add another validator, we just have to update what we require
   - We can potentially use this to make smaller builds esp for client-side usage
   - Once ripped out into a module we can use ES imports :D
- Rejigged and _slightly_ improved the tests
2021-06-15 15:17:20 +01:00
..
db Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
exporter Added extra newsletter settings 2021-06-07 16:31:50 +01:00
importer Migrated members_allow_free_signup setting to members_signup_access (#12886) 2021-04-19 16:36:30 +01:00
meta Updated bson-objectid calls to match API change 2021-04-21 16:23:52 +01:00
migrations Updated bson-objectid calls to match API change 2021-04-21 16:23:52 +01:00
schema Moved schema validator into the schema module 2021-06-15 11:54:34 +01:00
validation Refactored + cleaned up validation tools 2021-06-15 15:17:20 +01:00
xml/sitemap Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00