Add minimal testing structure

This commit is contained in:
Andrey Antukh 2025-05-19 09:08:43 +02:00
parent 29d23577d2
commit 778de6adaf
5 changed files with 100 additions and 15 deletions

View file

@ -35,7 +35,7 @@
:enumerable true
:this false
:get (fn [] cause)}
{:name "data"
{:name "explain"
:enumerable true
:this false
:get (fn []
@ -68,7 +68,7 @@
(defn- create-builder-api
[state]
(obj/reify {:name "File"}
(obj/reify {:name "BuildContext"}
:currentFileId
{:get #(dm/str (get @state ::fb/current-file-id))}
@ -275,8 +275,11 @@
:genId
(fn []
(dm/str (uuid/next)))))
(dm/str (uuid/next)))
:getInternalState
(fn []
(json/->js @state))))
(defn create-build-context
"Create an empty builder state context."