Skip to content

Commit c20ce0c

Browse files
committed
add test for numeric case
1 parent b32cbc4 commit c20ce0c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/testthat/test-bs-theme.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ test_that("Theme adding works as intended", {
4343
css <- bootstrap_sass(".foo{color:$primary;}")
4444
expect_css(".foo{color:#fff;}", css)
4545

46-
# Also works without default flags
46+
# Also works without default flags and can handle numeric values
4747
bs_theme_add_variables(primary = "blue")
48-
bs_theme_add_variables(primary = "#fff")
49-
css <- bootstrap_sass(".foo{color:$primary;}")
50-
expect_css(".foo{color:#fff;}", css)
48+
bs_theme_add_variables(primary = "#fff", "font-size" = 0)
49+
css <- bootstrap_sass(".foo{color:$primary;font-size:0}")
50+
expect_css(".foo{color:#fff;font-size:0;}", css)
5151

5252
# Can also override variables via declarations
5353
bs_theme_add_variables(

0 commit comments

Comments
 (0)