Skip to content

Commit fb6a498

Browse files
fix test to check for warning
1 parent a1fe62f commit fb6a498

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-rmd.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
context("rmd")
22

33
test_that("can style .Rmd files", {
4-
expect_error(test_collection(
4+
expect_warning(test_collection(
55
"rmd", "simple",
66
transformer = transform_rmd,
77
transformer_fun = style_text,
88
write_tree = FALSE
99
), NA)
10-
expect_error(test_collection(
10+
expect_warning(test_collection(
1111
"rmd", "r_and_non_r_code_chunks",
1212
transformer = transform_rmd,
1313
transformer_fun = style_text,

0 commit comments

Comments
 (0)