mirror of
https://github.com/penpot/penpot.git
synced 2025-07-17 15:07:17 +02:00
✨ Add generative tests for set-guide change
This commit is contained in:
parent
fa75a3539f
commit
4f84e77b10
5 changed files with 89 additions and 19 deletions
|
@ -110,8 +110,8 @@
|
|||
|
||||
(dm/assert!
|
||||
"expect valid vector of changes"
|
||||
(and (cpc/check-changes! redo-changes)
|
||||
(cpc/check-changes! undo-changes)))
|
||||
(and (cpc/valid-changes? redo-changes)
|
||||
(cpc/valid-changes? undo-changes)))
|
||||
|
||||
(let [commit-id (or commit-id (uuid/next))
|
||||
source (d/nilv source :local)
|
||||
|
|
|
@ -676,7 +676,7 @@
|
|||
(defn ext-library-changed
|
||||
[library-id modified-at revn changes]
|
||||
(dm/assert! (uuid? library-id))
|
||||
(dm/assert! (ch/check-changes! changes))
|
||||
(dm/assert! (ch/valid-changes? changes))
|
||||
(ptk/reify ::ext-library-changed
|
||||
ptk/UpdateEvent
|
||||
(update [_ state]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue