We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ec1cc6 commit 9ec6687Copy full SHA for 9ec6687
R/testing-public-api.R
@@ -46,15 +46,14 @@ ls_testable_encodings <- function() {
46
test_dry <- function(path, styler, styled = FALSE) {
47
before <- readLines(path)
48
summary <- styler(path, dry = "on")
49
- checker <- ifelse(styled, expect_false, expect_true)
+ checker <- ifelse(styled, testthat::expect_false, testthat::expect_true)
50
checker(summary$changed)
51
- expect_true(identical(before, readLines(path)))
+ testthat::expect_true(identical(before, readLines(path)))
52
53
if (styled) {
54
expect_error(styler(path, dry = "fail"), NA)
55
} else {
56
expect_error(styler(path, dry = "fail"), "would be modified")
57
}
58
expect_error(styler(path, dry = "other option"), "one of")
59
-
60
0 commit comments