Skip to content

Commit f7ef7d9

Browse files
add a test
1 parent 419044e commit f7ef7d9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/testthat/test-public_api.R

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ test_that("styler can style package and exclude some directories", {
1818
}))
1919
})
2020

21+
test_that("styler can style package and exclude some sub-directories", {
22+
capture_output(expect_true({
23+
styled <- style_pkg(testthat_file("public-api", "xyzpackage"),
24+
exclude_dirs = "tests/testthat"
25+
)
26+
nrow(styled) == 2
27+
}))
28+
})
29+
30+
2131

2232
test_that("styler can style package and exclude some directories and files", {
2333
capture_output(expect_true({

0 commit comments

Comments
 (0)