Skip to content

Commit

Permalink
updating snapshot to ignore deprecation msg out of our control
Browse files Browse the repository at this point in the history
  • Loading branch information
ddsjoberg committed Oct 2, 2024
1 parent c34ce6d commit bcb1679
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/custom_tidiers.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# tidy_bootstrap()

Code
tidy_bootstrap(lm(age ~ grade + marker, trial), exponentiate = TRUE)
df
Output
# A tibble: 4 x 5
term estimate conf.low conf.high p.value
Expand Down
8 changes: 5 additions & 3 deletions tests/testthat/test-custom_tidiers.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ test_that("tidy_bootstrap()", {
skip_if_not(is_pkg_installed(c("parameters", "withr"), reference_pkg = "gtsummary"))
withr::local_seed(11235)

expect_snapshot(
lm(age ~ grade + marker, trial) |>
tidy_bootstrap(exponentiate = TRUE)
expect_error(
df <- lm(age ~ grade + marker, trial) |>
tidy_bootstrap(exponentiate = TRUE),
NA
)
expect_snapshot(df)
})

test_that("tidy_wald_test()", {
Expand Down

0 comments on commit bcb1679

Please sign in to comment.