tests/testthat/test-nesting.R
raw| 1 | # Disable sass cache |
| 2 | local_disable_cache() |
| 3 | |
| 4 | test_that("nesting works", { |
| 5 | expected <- read_utf8("test-nesting-expected.css") |
| 6 | class(expected) <- c("css", "html", "character") |
| 7 | attr(expected, "html") <- TRUE |
| 8 | |
| 9 | css <- sass(sass_file("test-nesting-input.scss")) |
| 10 | |
| 11 | expect_equal(css, expected) |
| 12 | }) |