refactor: rename :block/original-name to :block/title

This commit is contained in:
Tienson Qin
2024-07-10 21:29:39 +08:00
parent 2a48486ac1
commit a1f352773b
105 changed files with 559 additions and 563 deletions

View File

@@ -21,7 +21,7 @@
(doseq [page pages]
(test-helper/create-page! page {:redirect? false :create-first-block? false :class? true})
(db-recent-handler/add-page-to-recent! (:db/id (db/get-page page)) false))
(is (= (map :block/original-name (db-recent-handler/get-recent-pages)) (reverse pages)))
(is (= (map :block/title (db-recent-handler/get-recent-pages)) (reverse pages)))
(testing "Click existing recent item shouldn't update its position"
(db-recent-handler/add-page-to-recent! (:db/id (db/get-page "Page 10")) true)
(is (= (map :block/original-name (db-recent-handler/get-recent-pages)) (reverse pages)))))))
(is (= (map :block/title (db-recent-handler/get-recent-pages)) (reverse pages)))))))