mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 22:47:36 +00:00
fix: lint
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
(throw (ex-info "Read-only property value shouldn't be edited"
|
||||
{:property property-ident}))))
|
||||
|
||||
(defonce built-in-class-property->properties
|
||||
(defonce ^:private built-in-class-property->properties
|
||||
(->>
|
||||
(mapcat
|
||||
(fn [[class-ident {:keys [properties]}]]
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
(testing "Rename parent to extends"
|
||||
(let [db-transit (str (fs-node/readFileSync "src/test/migration/64.8.transit"))
|
||||
db (ldb/read-transit-str db-transit)
|
||||
conn (d/conn-from-db db)
|
||||
tx-data (db-migrate/fix-rename-parent-to-extends conn nil)]
|
||||
tx-data (db-migrate/fix-rename-parent-to-extends db)]
|
||||
(is (= (->> tx-data
|
||||
(map (fn [data]
|
||||
(cond
|
||||
@@ -110,8 +109,7 @@
|
||||
(testing "Separate properties from classes"
|
||||
(let [db-transit (str (fs-node/readFileSync "src/test/migration/65.0.transit"))
|
||||
db (ldb/read-transit-str db-transit)
|
||||
conn (d/conn-from-db db)
|
||||
tx-data (db-migrate/separate-classes-and-properties conn nil)
|
||||
tx-data (db-migrate/separate-classes-and-properties db)
|
||||
new-property (first tx-data)]
|
||||
(is (= (dissoc new-property
|
||||
:block/updated-at
|
||||
|
||||
Reference in New Issue
Block a user