mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 07:05:10 +00:00
refactor: rename :block/original-name to :block/title
This commit is contained in:
@@ -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)))))))
|
||||
|
||||
Reference in New Issue
Block a user