Skip to content

Commit 9ec6687

Browse files
mask testthat calls
1 parent 5ec1cc6 commit 9ec6687

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

R/testing-public-api.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,14 @@ ls_testable_encodings <- function() {
4646
test_dry <- function(path, styler, styled = FALSE) {
4747
before <- readLines(path)
4848
summary <- styler(path, dry = "on")
49-
checker <- ifelse(styled, expect_false, expect_true)
49+
checker <- ifelse(styled, testthat::expect_false, testthat::expect_true)
5050
checker(summary$changed)
51-
expect_true(identical(before, readLines(path)))
51+
testthat::expect_true(identical(before, readLines(path)))
5252

5353
if (styled) {
5454
expect_error(styler(path, dry = "fail"), NA)
5555
} else {
5656
expect_error(styler(path, dry = "fail"), "would be modified")
5757
}
5858
expect_error(styler(path, dry = "other option"), "one of")
59-
6059
}

0 commit comments

Comments
 (0)