0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/test/unit
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
..
adapters Refactored scheduling index files into class/initializer pattern 2021-05-25 22:32:41 +04:00
api Added support for gating content by member labels and products (#12946) 2021-05-10 19:32:11 +01:00
apps Moved active theme to new theme engine service 2021-04-23 15:28:50 +01:00
data Refactored + cleaned up validation tools 2021-06-15 15:17:20 +01:00
helpers Added initial match helper 2021-06-07 21:15:05 +01:00
lib Extracted package-json lib to Utils 2021-05-07 12:35:06 +01:00
models Extracted Bookshelf plugins from Ghost to Framework repo 2021-06-15 12:49:38 +01:00
server Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
services Enabled all labs flags when testing (#13036) 2021-06-10 12:54:34 +01:00
shared Added fake logging to i18n tests 2021-05-06 19:38:01 +01:00
web Fixed broken require path (bridge in tests) 2021-04-26 15:01:10 +01:00