Skip to content

Commit 738e6f8

Browse files
Update test-public_api.R
1 parent 6f7d626 commit 738e6f8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/testthat/test-public_api.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -295,17 +295,17 @@ test_that("styler can style R and Rmd files via style_pkg()", {
295295
expect_false(any(grepl("RcppExports.R", msg, fixed = TRUE)))
296296
})
297297

298-
test_that("style_pkg() does not style qmd files by default", {
298+
test_that("style_pkg() styles qmd files by default", {
299299
msg <- capture_output(
300300
style_pkg(testthat_file("public-api", "xyzpackage-qmd"))
301301
)
302302
expect_true(any(grepl("hello-world.R", msg, fixed = TRUE)))
303303
expect_true(any(grepl("test-package-xyz.R", msg, fixed = TRUE)))
304-
expect_false(any(grepl("random.Rmd", msg, fixed = TRUE)))
305-
expect_false(any(grepl("random.Rmarkdown", msg, fixed = TRUE)))
306-
expect_false(any(grepl("README.Rmd", msg, fixed = TRUE)))
304+
expect_true(any(grepl("random.Rmd", msg, fixed = TRUE)))
305+
expect_true(any(grepl("random.Rmarkdown", msg, fixed = TRUE)))
306+
expect_true(any(grepl("README.Rmd", msg, fixed = TRUE)))
307307
expect_false(any(grepl("RcppExports.R", msg, fixed = TRUE)))
308-
expect_false(any(grepl("new.qmd", msg, fixed = TRUE)))
308+
expect_true(any(grepl("new.qmd", msg, fixed = TRUE)))
309309
})
310310

311311
test_that("style_pkg() can find qmd anywhere", {

0 commit comments

Comments
 (0)