Ghost/test/unit/frontend/helpers
Simon Backx f389bab6ab
🐛 {{access}} property incorrect when using get/next-post/prev-post helpers (#14256)
refs https://github.com/TryGhost/Team/issues/1367

- The {{access}} property of a post always returned false for non-public content
- Added the member context to the get, next-post and prev-post helpers
- The get, next-post and prev-post helpers didn't add the member context to the internal API calls
- Added the members context to these calls
- Added tests that check if the member context is passed to the API calls
- Transformed next_post helper tests to async await syntax
- Transformed prev_post helper tests to async await syntax
2022-03-03 16:18:05 +01:00
..
test_tpl Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
asset.test.js 🐛 Fixed broken assets for theme/design preview 2021-11-03 11:20:04 +01:00
author.test.js Moved URL service to backend 2021-10-19 07:29:09 +13:00
authors.test.js Moved URL service to backend 2021-10-19 07:29:09 +13:00
body_class.test.js Cleaned up weird refs to versions in tests 2022-01-21 15:10:03 +00:00
cancel_link.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
concat.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
content.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
date.test.js Added timezone and locale to the options of the date helper (#13892) 2022-01-19 14:43:53 +00:00
encode.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
excerpt.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
facebook_url.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
foreach.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
get.test.js 🐛 {{access}} property incorrect when using get/next-post/prev-post helpers (#14256) 2022-03-03 16:18:05 +01:00
ghost_foot.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
ghost_head.test.js Updated misc unversioned tests to run on canary 2022-01-21 15:11:48 +00:00
has.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
img_url.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
is.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
lang.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
link_class.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
link.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
match.test.js Added >, <, >=, and <= operators to match helper (#14215) 2022-03-03 15:43:47 +01:00
meta_description.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
meta_title.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
navigation.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
next_post.test.js 🐛 {{access}} property incorrect when using get/next-post/prev-post helpers (#14256) 2022-03-03 16:18:05 +01:00
page_url.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
pagination.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
plural.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
post_class.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
prev_post.test.js 🐛 {{access}} property incorrect when using get/next-post/prev-post helpers (#14256) 2022-03-03 16:18:05 +01:00
price.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
raw.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
reading_time.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
t.test.js Moved locale testing out of casper fixture (#13850) 2021-12-06 15:11:54 +00:00
tags.test.js Moved URL service to backend 2021-10-19 07:29:09 +13:00
title.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
twitter_url.test.js Moved frontend unit tests into their own folder 2021-10-06 11:58:29 +01:00
url.test.js Fixed the tests from the previous commit 2021-12-02 10:48:46 +01:00