Skip to content

Commit 751f547

Browse files
committed
style: styler (GHA)
1 parent 07e54f4 commit 751f547

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

tests/testthat/test-methods-epi_archive.R

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,14 +240,19 @@ test_that("filter.epi_archive works as expected", {
240240
expected <- rlang::catch_cnd(ea2p %>% filter(cases >= median(cases), .by = geo_value))
241241
expect_class(expected$parent, "epiprocess__filter_archive__used_measurement")
242242
with(list(cli_abort = function(...) stop("now, pretend user didn't have cli attached")), {
243-
expect_equal(rlang::catch_cnd(ea2p %>% filter(cases >= median(cases), .by = geo_value))$parent$message,
244-
expected$parent$message)
243+
expect_equal(
244+
rlang::catch_cnd(ea2p %>% filter(cases >= median(cases), .by = geo_value))$parent$message,
245+
expected$parent$message
246+
)
245247
})
246248
expect_equal(
247-
rlang::catch_cnd(ea2p %>% filter({
248-
c <- function(...) stop("and that they overwrote `c` to try to debug their own code")
249-
cases >= median(cases)
250-
}, .by = geo_value))$parent$message,
249+
rlang::catch_cnd(ea2p %>% filter(
250+
{
251+
c <- function(...) stop("and that they overwrote `c` to try to debug their own code")
252+
cases >= median(cases)
253+
},
254+
.by = geo_value
255+
))$parent$message,
251256
expected$parent$message
252257
)
253258

0 commit comments

Comments
 (0)