mirror of
https://github.com/penpot/penpot.git
synced 2025-07-23 08:57:29 +02:00
🐛 Add migration for fix undecoded path content
This commit is contained in:
parent
898182e3d5
commit
a2b8f19ff3
7 changed files with 73 additions and 59 deletions
|
@ -113,10 +113,10 @@
|
|||
{:num 500})))
|
||||
|
||||
(t/deftest shape-path-content-json-roundtrip
|
||||
(let [encode (sm/encoder ::path/content (sm/json-transformer))
|
||||
decode (sm/decoder ::path/content (sm/json-transformer))]
|
||||
(let [encode (sm/encoder path/schema:content (sm/json-transformer))
|
||||
decode (sm/decoder path/schema:content (sm/json-transformer))]
|
||||
(smt/check!
|
||||
(smt/for [path-content (sg/generator ::path/content)]
|
||||
(smt/for [path-content (sg/generator path/schema:content)]
|
||||
(let [path-content-1 (encode path-content)
|
||||
path-content-2 (json-roundtrip path-content-1)
|
||||
path-content-3 (decode path-content-2)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue