0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-22 06:46:40 -05:00

📎 Fix tests

This commit is contained in:
Eva Marco 2025-02-20 17:41:36 +01:00
parent 8cd2e3a32e
commit 9a0d2f0ebd
3 changed files with 7 additions and 3 deletions

View file

@ -1251,7 +1251,8 @@ Will return a value that matches this schema:
(update "sets" keys)))))
active-sets (get metadata "activeSets")
active-themes (get metadata "activeThemes")
themes-data (if (empty? active-themes)
themes-data (if (and (seq active-sets)
(empty? active-themes))
(conj themes-data {"name" hidden-token-theme-name
"group" ""
"description" nil

View file

@ -805,6 +805,8 @@
"selectedTokenSets": {"light": "enabled"}
} ],
"$metadata": {
"tokenSetOrder": ["core", "light", "dark", "theme"]
"tokenSetOrder": ["core", "light", "dark", "theme"],
"activeSets": {},
"activeThemes": {}
}
}

View file

@ -1241,7 +1241,8 @@
"modified-at" now
"name" "theme-1"
"selectedTokenSets" {"core" "enabled"}}]
"$metadata" {"tokenSetOrder" ["core"]}
"$metadata" {"tokenSetOrder" ["core"]
"activeSets" #{}, "activeThemes" #{}}
"core"
{"colors" {"red" {"600" {"$value" "#e53e3e"
"$type" "color"