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