tests/testthat/test-variables.R

# Disable sass cache
local_disable_cache()

test_that("variables work", {
  css <- sass(sass_file("test-variables.scss"))
  expect_equal(
    strsplit(css, " ")[[1]][6],
    "Helvetica,"
  )
})

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.