fix: use nil for current_filter when no filter active, fix test

This commit is contained in:
2026-06-21 09:11:20 -04:00
parent 4cf11fdd02
commit 439f9d3eed
3 changed files with 480 additions and 2 deletions
+1 -1
View File
@@ -97,7 +97,7 @@
(ert-deftest spine-index-model-includes-current-filter ()
"Model includes current_filter key matching the filter argument."
(should (equal (ht-get (spine-index-model spine-index-model-test--books) "current_filter") ""))
(should (not (ht-get (spine-index-model spine-index-model-test--books) "current_filter")))
(should (equal (ht-get (spine-index-model spine-index-model-test--books "all") "current_filter") "all"))
(should (equal (ht-get (spine-index-model spine-index-model-test--books "read") "current_filter") "read"))
(should (equal (ht-get (spine-index-model spine-index-model-test--books "want") "current_filter") "want")))