diff --git a/tests/e2e/test-lint-sass.R b/tests/e2e/test-lint-sass.R index 21c620fa..decc7633 100644 --- a/tests/e2e/test-lint-sass.R +++ b/tests/e2e/test-lint-sass.R @@ -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)