tests/testthat/test-import.R

# Disable sass cache
local_disable_cache()

test_that("import works", {
  imported_type <- "html"
  css <- sass(sass_file("test-import.scss"))
  expect_equal(
    strsplit(css, ",")[[1]][1],
    imported_type
  )
})

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.