@@ -295,17 +295,17 @@ test_that("styler can style R and Rmd files via style_pkg()", {
295
295
expect_false(any(grepl(" RcppExports.R" , msg , fixed = TRUE )))
296
296
})
297
297
298
- test_that(" style_pkg() does not style qmd files by default" , {
298
+ test_that(" style_pkg() styles qmd files by default" , {
299
299
msg <- capture_output(
300
300
style_pkg(testthat_file(" public-api" , " xyzpackage-qmd" ))
301
301
)
302
302
expect_true(any(grepl(" hello-world.R" , msg , fixed = TRUE )))
303
303
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 )))
307
307
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 )))
309
309
})
310
310
311
311
test_that(" style_pkg() can find qmd anywhere" , {
0 commit comments