Skip to content

Commit

Permalink
update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
joethorley committed Jan 3, 2024
1 parent aa358cf commit 5bf11f3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Imports:
utils
Suggests:
covr,
dplyr,
graphics,
readr,
rlang,
Expand Down
2 changes: 1 addition & 1 deletion R/test-helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ save_csv <- function(x) {

expect_snapshot_data <- function(x, name, digits = 6) {
fun <- function(x) signif(x, digits = digits)
x <- dplyr::mutate(x, dplyr::across(where(is.numeric), fun))
x <- dplyr::mutate(x, dplyr::across(dplyr::where(is.numeric), fun))
path <- save_csv(x)
testthat::expect_snapshot_file(
path,
Expand Down
2 changes: 1 addition & 1 deletion man/reexports.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/testthat/_snaps/estimates/estimates.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
term,estimate
parameter[1],3.718025
parameter[2],4.718025
parameter[1],3.71802
parameter[2],4.71802

0 comments on commit 5bf11f3

Please sign in to comment.