mirror of
https://github.com/penpot/penpot.git
synced 2025-07-21 23:27:13 +02:00
✨ Add minimal testing structure
This commit is contained in:
parent
29d23577d2
commit
778de6adaf
5 changed files with 100 additions and 15 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue