tests/testthat/test-mixins.R

# Disable sass cache
local_disable_cache()

test_that("mixins work", {
  expected_first_word <- ".box"
  css <- sass(sass_file("test-mixins.scss"))
  expect_equal(
    strsplit(css, " ")[[1]][1],
    expected_first_word
  )
})

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.