Skip to content

Commit 2c6f810

Browse files
fix: a test's global change to ldb/transact!
shouldn't affect other tests. This test changes transact-pipeline-fn which could cause further tests to randomly depend on and fail from it
1 parent 71be8ec commit 2c6f810

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/frontend/worker/pipeline_test.cljs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,6 @@
7676
:block/title "task"}])
7777
(let [task (d/entity @conn (:db/id task))]
7878
(is (= :logseq.class/Task (:db/ident task)))
79-
(is (= "Task" (:block/title task))))))))
79+
(is (= "Task" (:block/title task))))))
80+
;; return global fn back to previous behavior
81+
(ldb/register-transact-pipeline-fn! identity)))

0 commit comments

Comments
 (0)