Add 3 missing built-in-properties

Also fix carve linter and make nbb test invocation easier
pull/6024/head
Gabriel Horner 2022-07-13 11:03:57 -04:00 committed by Junyi Du
parent 50bce350de
commit abd7e0becb
6 changed files with 12 additions and 5 deletions

View File

@ -83,7 +83,7 @@ jobs:
run: clojure -M:test
- name: Run nbb-logseq tests
run: yarn nbb-logseq -cp src:test:../db/src -m logseq.graph-parser.nbb-test-runner/run-tests
run: yarn test
# In this job because it depends on an npm package
- name: Load namespaces into nbb-logseq

View File

@ -2,3 +2,5 @@
logseq.graph-parser.cli/parse-graph
;; For CLI
logseq.graph-parser.mldoc/ast-export-markdown
;; API
logseq.graph-parser.property/register-built-in-properties

View File

@ -49,7 +49,7 @@ To see available options that can run specific tests or namespaces: `clojure -M:
To run nbb-logseq tests:
```
yarn nbb-logseq -cp src:test -m logseq.graph-parser.nbb-test-runner/run-tests
yarn test
```
### Managing dependencies

View File

@ -7,5 +7,8 @@
},
"dependencies": {
"mldoc": "^1.3.9"
},
"scripts": {
"test": "nbb-logseq -cp src:test:../db/src -m logseq.graph-parser.nbb-test-runner/run-tests"
}
}

View File

@ -26,8 +26,10 @@
"Properties that should only be used by logseq"
[]
(set/union
#{:id :custom-id :background-color :heading :collapsed :created-at :updated-at :last-modified-at :created_at :last_modified_at :query-table :query-properties :query-sort-by :query-sort-desc
:ls-type :hl-type :hl-page :hl-stamp}
#{:id :custom-id :background-color :heading :collapsed :created-at :updated-at
:last-modified-at :created_at :last_modified_at :query-table
:query-properties :query-sort-by :query-sort-desc :ls-type :hl-type
:hl-page :hl-stamp :template-including-parent :icon :filters}
(set (map keyword markers))
@built-in-extended-properties))

View File

@ -142,7 +142,7 @@
;; only increase over time as the docs graph rarely has deletions
(testing "Counts"
(is (= 211 (count files)) "Correct file count")
(is (= 42648 (count (d/datoms db :eavt))) "Correct datoms count")
(is (= 42638 (count (d/datoms db :eavt))) "Correct datoms count")
(is (= 3600
(ffirst