fix: multiple bugs with built-in pages, fixes LOG-3046

- file graph wasn't creating built in pages
- 3 places where db graphs were incorrectly using file graph built in
  page names
- file graphs creating default pages with incorrect format
This commit is contained in:
Gabriel Horner
2024-03-29 16:07:22 -04:00
parent e08e52acd3
commit f728b7b9f6
24 changed files with 163 additions and 144 deletions

View File

@@ -145,7 +145,7 @@
edn-output (edn/read-string result)]
(is (= #{:version :blocks} (set (keys edn-output)))
"Correct top-level keys")
(is (= (sort (concat (map :block/original-name default-db/built-in-pages)
(is (= (sort (concat (map :block/original-name gp-db/built-in-pages)
["page1" "page2"]))
(sort (map :block/page-name (:blocks edn-output))))
"Correct pages")))