mirror of https://github.com/logseq/logseq
fix: CI
parent
cab5dc45a2
commit
58839059ac
|
@ -6,7 +6,7 @@
|
|||
"@logseq/nbb-logseq": "^0.7.133"
|
||||
},
|
||||
"dependencies": {
|
||||
"mldoc": "^1.4.6"
|
||||
"mldoc": "^1.4.9"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "nbb-logseq -cp src:test:../db/src -m logseq.graph-parser.nbb-test-runner/run-tests"
|
||||
|
|
|
@ -84,8 +84,7 @@
|
|||
(let [[*valid-properties *invalid-properties]
|
||||
((juxt filter remove)
|
||||
(fn [[k _v]] (gp-property/valid-property-name? (str k))) properties)
|
||||
valid-properties (-> (into {} *valid-properties)
|
||||
(dissoc :tags :alias))
|
||||
valid-properties (into {} *valid-properties)
|
||||
invalid-properties (set (map (comp name first) *invalid-properties))
|
||||
page-m (->
|
||||
(gp-util/remove-nils
|
||||
|
|
|
@ -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 (= 41802 (count (d/datoms db :eavt))) "Correct datoms count")
|
||||
(is (= 41828 (count (d/datoms db :eavt))) "Correct datoms count")
|
||||
|
||||
(is (= 3600
|
||||
(ffirst
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
[["alias" "[[name/with space]]"]] {:alias #{"name/with space"}}
|
||||
[["tags" "[[foo]], [[bar]]"]] {:tags #{"foo" "bar"}}
|
||||
[["tags" "[[foo]] [[bar]]"]] {:tags #{"foo" "bar"}}
|
||||
[["tags" "bar"]] {:tags "bar"}
|
||||
[["tags" "bar"]] {:tags #{"bar"}}
|
||||
[["file-path" "file:///home/x, y.pdf"]] {:file-path "file:///home/x, y.pdf"}
|
||||
|
||||
;; User properties
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
(deftest test-parse-property
|
||||
(testing "parse-property"
|
||||
(are [k v y] (= (parse-property k v) y)
|
||||
:tags "foo" "foo"
|
||||
:tags "foo" ["foo"]
|
||||
:tags "[[foo]], [[bar]]" #{"foo" "bar"}
|
||||
:tags "[[foo]],[[bar]]" #{"foo" "bar"}
|
||||
:tags "[[foo]]" #{"foo"}
|
||||
|
|
|
@ -190,7 +190,7 @@
|
|||
(property-relationships-test
|
||||
properties
|
||||
{:single-link #{"bar"}
|
||||
:multi-link #{"Logseq" "is the fastest" "triples" "text editor"}
|
||||
:multi-link #{"Logseq" "triples" "text editor"}
|
||||
:desc #{"This is a multiple sentence description. It has one" "link"}
|
||||
:comma-prop #{"one" "two" "three"}}
|
||||
{}))))
|
||||
|
|
|
@ -177,10 +177,10 @@ mimic-fn@^2.0.0:
|
|||
resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b"
|
||||
integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==
|
||||
|
||||
mldoc@^1.4.6:
|
||||
version "1.4.6"
|
||||
resolved "https://registry.yarnpkg.com/mldoc/-/mldoc-1.4.6.tgz#b5c9f091ca3be107b21b3d6a8c673b7f1d59944d"
|
||||
integrity sha512-oPRqtuqT4f1WZNUofmVOYVzFhIE+3gsPGFPRsBHGcJmxtoFWzBY8x6E/FQuanVhGyQGDPJg6SQsyzAVfOzjKGA==
|
||||
mldoc@^1.4.9:
|
||||
version "1.4.9"
|
||||
resolved "https://registry.yarnpkg.com/mldoc/-/mldoc-1.4.9.tgz#a61d93e98f19bf4ec6303810cc3573c5e14eab44"
|
||||
integrity sha512-rroc1tWJnNm2n33MYk+sWgLjGWmP93Am+6zvpBe0BGEyccHQT3AxHHv8fNpF7HVvT7YPtU/dtHWTh6nE2n7vPA==
|
||||
dependencies:
|
||||
yargs "^12.0.2"
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
"ignore": "5.1.8",
|
||||
"is-svg": "4.3.0",
|
||||
"jszip": "3.5.0",
|
||||
"mldoc": "1.4.8",
|
||||
"mldoc": "1.4.9",
|
||||
"path": "0.12.7",
|
||||
"pixi-graph-fork": "0.2.0",
|
||||
"pixi.js": "6.2.0",
|
||||
|
|
Loading…
Reference in New Issue