mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🔧 Refactor token validation schemas
This commit is contained in:
committed by
Andrés Moya
parent
8a8f360c7f
commit
e8ff89836e
@@ -6,7 +6,7 @@
|
||||
|
||||
(ns frontend-tests.tokens.helpers.tokens
|
||||
(:require
|
||||
[app.common.files.tokens :as cft]
|
||||
[app.common.files.tokens :as cfo]
|
||||
[app.common.test-helpers.ids-map :as thi]
|
||||
[app.common.types.tokens-lib :as ctob]))
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
(let [first-page-id (get-in file [:data :pages 0])
|
||||
shape-id (thi/id shape-label)
|
||||
token (get-token file token-label)
|
||||
applied-attributes (cft/attributes-map attributes token)]
|
||||
applied-attributes (cfo/attributes-map attributes token)]
|
||||
(update-in file [:data
|
||||
:pages-index first-page-id
|
||||
:objects shape-id
|
||||
|
||||
@@ -57,8 +57,7 @@
|
||||
store (ths/setup-store file)
|
||||
tokens-lib (toht/get-tokens-lib file)
|
||||
set-a (ctob/get-set-by-name tokens-lib "Set A")
|
||||
events [(dwtl/update-token-set (ctob/rename set-a "Set A updated")
|
||||
"Set A updated")]]
|
||||
events [(dwtl/rename-token-set set-a "Set A updated")]]
|
||||
|
||||
(tohs/run-store-async
|
||||
store done events
|
||||
|
||||
Reference in New Issue
Block a user