Skip to content

Commit

Permalink
Use correct hash in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarzka committed Jun 13, 2021
1 parent cf988e3 commit 3694792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/stylefy/tests/conversion_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@
"._stylefy_628215496{background-color:red;border-radius:10px;-webkit-border-radius:10px;-moz-border-radius:10px;-o-border-radius:10px}._stylefy_628215496:hover{background-color:white}@media(max-width:500px){._stylefy_628215496{background-color:blue;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-o-border-radius:5px}._stylefy_628215496:hover{background-color:grey}}")))

(testing "Vector syntax"
(is (= (conversion/style->css {:props responsive-style-vector-syntax :hash (hashing/hash-style responsive-style-map-syntax)}
(is (= (conversion/style->css {:props responsive-style-vector-syntax :hash (hashing/hash-style responsive-style-vector-syntax)}
{:pretty-print? false})
"._stylefy_628215496{background-color:red;border-radius:10px;-webkit-border-radius:10px;-moz-border-radius:10px;-o-border-radius:10px}._stylefy_628215496:hover{background-color:white}@media(max-width:500px){._stylefy_628215496{background-color:blue;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-o-border-radius:5px}._stylefy_628215496:hover{background-color:grey}}")))
"._stylefy_720265521{background-color:red;border-radius:10px;-webkit-border-radius:10px;-moz-border-radius:10px;-o-border-radius:10px}._stylefy_720265521:hover{background-color:white}@media(max-width:500px){._stylefy_720265521{background-color:blue;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-o-border-radius:5px}._stylefy_720265521:hover{background-color:grey}}")))

(testing "Same output with both syntaxes (excluding hash)"
(is (= (conversion/style->css {:props responsive-style-map-syntax
Expand Down

0 comments on commit 3694792

Please sign in to comment.