Skip to content

Commit

Permalink
Update test snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
edelarua committed Apr 22, 2024
1 parent 12d99e8 commit ce8def3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions tests/testthat/_snaps/construction_helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
mtcars, `M P G` = mpg), formula = reformulate2(c("M P G", "cyl"), response = "hp"),
method = "lm"))), stat_name %in% c("term", "estimate", "p.value"))
Output
variable variable_level context stat_name stat_label stat fmt_fn
1 M P G <NA> regression term term `M P G` NULL
2 M P G <NA> regression estimate Coefficient -2.774769 1
3 M P G <NA> regression p.value p-value 0.2125285 1
4 cyl <NA> regression term term cyl NULL
5 cyl <NA> regression estimate Coefficient 23.97863 1
6 cyl <NA> regression p.value p-value 0.002814958 1
variable context stat_name stat_label stat fmt_fn
1 M P G regression term term `M P G` NULL
2 M P G regression estimate Coefficient -2.774769 1
3 M P G regression p.value p-value 0.2125285 1
4 cyl regression term term cyl NULL
5 cyl regression estimate Coefficient 23.97863 1
6 cyl regression p.value p-value 0.002814958 1

2 changes: 1 addition & 1 deletion tests/testthat/test-construction_helpers.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
skip_if_not(is_pkg_installed(c("withr", "survey"), reference_pkg = "cardx"))
skip_if_not(is_pkg_installed(c("broom.helpers", "withr", "survey"), reference_pkg = "cardx"))

test_that("construct_model() works", {
expect_snapshot(
Expand Down

0 comments on commit ce8def3

Please sign in to comment.