0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/test
Naz 06dd9bac59 Refactored post resource Admin API test utils
refs https://github.com/TryGhost/Team/issues/687

- The approach of generating validation properties using `/server/data/schema` package's tables object is prone to leaking unwanted database fields into API responses
- This refactor takes a tiny step into direction of relying on "allowlist" approach for properties in the API response resources.
- Apart from solving the described property leak problem it also moves toward decoupling tests from `/core/server` dependencies!
2021-05-12 18:15:54 +04:00
..
api-acceptance Refactored post resource Admin API test utils 2021-05-12 18:15:54 +04:00
frontend-acceptance Added support for gating content by member labels and products (#12946) 2021-05-10 19:32:11 +01:00
regression Refactored post resource Admin API test utils 2021-05-12 18:15:54 +04:00
unit Added support for gating content by member labels and products (#12946) 2021-05-10 19:32:11 +01:00
utils Added support for gating content by member labels and products (#12946) 2021-05-10 19:32:11 +01:00
.eslintignore
.eslintrc.js Enabled no-skipped-tests eslint rule [warn] 2021-05-07 19:24:23 +01:00
.jshintrc