🔧 Use id instead of name for tokens crud

This commit is contained in:
Andrés Moya
2025-07-02 09:11:40 +02:00
committed by Andrés Moya
parent 1c79e726af
commit 57330f53e2
15 changed files with 252 additions and 186 deletions

View File

@@ -25,7 +25,7 @@
(rx/subs! (fn [tokens-lib]
(t/is (instance? ctob/TokensLib tokens-lib))
(t/is (= "red" (-> (ctob/get-set tokens-lib "core")
(ctob/get-token "color")
(ctob/token-by-name "color")
(:value))))
(done))))))))
@@ -97,5 +97,5 @@ color.value tries to reference missing, which is not defined.")))
(dwti/import-file-stream "")
(rx/subs! (fn [tokens-lib]
(t/is (instance? ctob/TokensLib tokens-lib))
(t/is (= "{missing}" (:value (ctob/get-token-in-set tokens-lib "core" "color"))))
(t/is (= "{missing}" (:value (ctob/get-token-by-name tokens-lib "core" "color"))))
(done))))))))