this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: broaden Reddit invalid post test assertion

Reddit returns a minimal response with just provider_name
for invalid posts. Accept null title as a valid "not found"
indicator.

+2 -1
+2 -1
tests/preview_test.sh
··· 50 50 '.provider_name == "Reddit" or .title != null' 51 51 52 52 # Invalid: specific non-existent post. 53 + # Reddit may return an error, a generic title, or a minimal response with just provider_name. 53 54 test_preview "Reddit Invalid" \ 54 55 "https://www.reddit.com/r/valheim/comments/INVALID_ID_12345/" \ 55 - '.error != null or (.title | contains("Page not found") or contains("Reddit"))' 56 + '.error != null or .title == null or (.title | contains("Page not found") or contains("Reddit"))' 56 57 57 58 # --- SPOTIFY --- 58 59 # Valid