Skip to content

Commit 2efa8db

Browse files
committed
test
1 parent 4005856 commit 2efa8db

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: src/quo2/components/list_items/token_value/component_spec.cljs

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
(ns quo2.components.list-items.token-value.component-spec
22
(:require
3+
[quo2.foundations.colors :as colors]
34
[test-helpers.component :as h]
45
[quo2.components.list-items.token-value.view :as token-value]))
56

@@ -18,7 +19,7 @@
1819
(h/is-truthy (h/get-by-text "Status")))
1920

2021
(h/test "Pressed state"
21-
(h/render [token-value/view
22+
(h/render [token-value/view
2223
{:token :snt
2324
:state :pressed
2425
:status :empty
@@ -28,8 +29,8 @@
2829
:fiat-value "€0.00"
2930
:percentage-change "0.00"
3031
:fiat-change "€0.00"}}])
31-
(h/has-style (h/get-by-label-text :container)
32-
{:background-color "rgba(42,74,245,0.05)"}))
32+
(h/has-style (h/get-by-label-text :container)
33+
{:backgroundColor (colors/custom-color-by-theme :blue 50 50 5 5)}))
3334

3435
(h/test "Active state"
3536
(h/render [token-value/view
@@ -43,7 +44,7 @@
4344
:percentage-change "0.00"
4445
:fiat-change "€0.00"}}])
4546
(h/has-style (h/get-by-label-text :container)
46-
{:background-color "rgba(42,74,245,0.1)"}))
47+
{:backgroundColor (colors/custom-color-by-theme :blue 50 50 10 10)}))
4748

4849
(h/test "Status change"
4950
(h/render [token-value/view

0 commit comments

Comments
 (0)