Просмотр исходного кода

chore: add test for / property page fix from #12353

Gabriel Horner 2 дней назад
Родитель
Сommit
5f34b04faa

+ 1 - 0
deps/graph-parser/src/logseq/graph_parser/exporter.cljs

@@ -2169,6 +2169,7 @@
                    (-> (select-keys options [:notify-user :default-config :<save-config-file])
                        (set/rename-keys {:<save-config-file :<save-file})))]
      (let [files (common-config/remove-hidden-files *files config rpath-key)
+           ;; Path normalization is needed just for windows
            normalized-rpath (fn [f]
                               (some-> (get f rpath-key) path/path-normalize))
            logseq-file? #(string/starts-with? (normalized-rpath %) "logseq/")

+ 1 - 1
deps/graph-parser/test/logseq/graph_parser/exporter_test.cljs

@@ -257,7 +257,7 @@
               set))))
 
     (testing "user properties"
-      (is (= 20
+      (is (= 21
              (->> @conn
                   (d/q '[:find [(pull ?b [:db/ident]) ...]
                          :where [?b :block/tags :logseq.class/Property]])

+ 3 - 1
deps/graph-parser/test/resources/exporter-test-graph/journals/2026_01_27.md

@@ -1 +1,3 @@
-- 2nd instance of block w/ longer ns tag #n1/n2/n3
+- 2nd instance of block w/ longer ns tag #n1/n2/n3
+- property pages with '/' should be valid
+key/value:: 1