From 18a9b14a6f448ac25cf200952eda5c656e243f58 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Thu, 27 Jun 2024 00:34:48 +0800 Subject: [PATCH] fix: test --- deps.edn | 4 ++++ test/datascript/test/storage.cljs | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/deps.edn b/deps.edn index f855a811..105b0a2f 100644 --- a/deps.edn +++ b/deps.edn @@ -30,6 +30,10 @@ com.cognitect/transit-clj {:mvn/version "1.0.324"} com.cognitect/transit-cljs {:mvn/version "0.8.269"}}} + :shadow-cljs + {:extra-deps {thheller/shadow-cljs {:mvn/version "2.19.0"}} + :main-opts ["-m" "shadow.cljs.devtools.cli"]} + :bench {:extra-paths ["bench"] :jvm-opts ["-server" diff --git a/test/datascript/test/storage.cljs b/test/datascript/test/storage.cljs index 19752d64..50ec70ae 100644 --- a/test/datascript/test/storage.cljs +++ b/test/datascript/test/storage.cljs @@ -280,9 +280,7 @@ ;; overflow keeps working on restored conn (d/transact! conn' (mapv #(vector :db/add % :name (str %)) (range 36 80))) - ;; (is (= 28 (count @(:*writes storage)))) - ;; FIXME: clj version is 28 - (is (= 29 (count @(:*writes storage)))) + (is (= 28 (count @(:*writes storage)))) (is (= @#'storage/tail-addr (last @(:*writes storage)))) ;; restore conn without tail @@ -290,7 +288,7 @@ (is (= @conn' @conn'')) (d/transact! conn'' [[:db/add 80 :name "Ilya"]]) - (is (= 30 (count @(:*writes storage)))) + (is (= 29 (count @(:*writes storage)))) (is (= @#'storage/tail-addr (last @(:*writes storage)))) ;; gc on conn