mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 04:43:12 +03:00
5c12c78d00
closes #528 - adds method (isPost)to models index.js that returns true if content, content_raw, title and slug are valid properties - adds url helper which checks context is post using isPost method - adds unit test to check a url is prefixed with / -adds unit test which checks for empty string if either of the 4 properties above are not present. |
||
---|---|---|
.. | ||
fixtures | ||
api_permissions_spec.js | ||
api_posts_spec.js | ||
api_settings_spec.js | ||
api_users_spec.js | ||
errorHandling_spec.js | ||
export_spec.js | ||
frontend_ghostdown_spec.js | ||
frontend_helpers_index_spec.js | ||
ghost_spec.js | ||
helpers.js | ||
import_spec.js | ||
permissions_spec.js | ||
plugins_spec.js |