tests/testthat/test-nesting.R

# Disable sass cache
local_disable_cache()

test_that("nesting works", {
  expected <- read_utf8("test-nesting-expected.css")
  class(expected) <- c("css", "html", "character")
  attr(expected, "html") <- TRUE

  css <- sass(sass_file("test-nesting-input.scss"))

  expect_equal(css, expected)
})

Try the sass package in your browser

Any scripts or data that you put into this service are public.

sass documentation built on May 29, 2024, 11:51 a.m.