Skip to content

Commit

Permalink
feat: Adjust stylelint rules and fix E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilzyla committed Jan 4, 2024
1 parent 03720b0 commit af583fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/test-lint-sass.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ rhino::lint_sass()

# Create bad scripts and test if formatting returns the expected result
test_scss_path <- fs::path("app", "styles", "bad-style.scss")
cat(".myClass{color: #FFFFFF}", file = test_scss_path)
cat(".my-class{color: #FFFFFF}", file = test_scss_path)
testthat::expect_error(rhino::lint_sass())
rhino::lint_sass(fix = TRUE)
testthat::expect_identical(
readLines(test_scss_path),
".myClass { color: #fff; }"
".my-class { color: #fff; }"
)
# Clean up
file.remove(test_scss_path)

0 comments on commit af583fe

Please sign in to comment.