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 July 26, 2023, 5:08 p.m.