Skip to content

Commit

Permalink
Fix warnings and errors in mod_common_forms test
Browse files Browse the repository at this point in the history
  • Loading branch information
jthompson-arcus committed Dec 2, 2024
1 parent e98afa0 commit a353f5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/fct_tables.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ create_table.default <- function(
any(reviewed == "Yes") ~ list(list(reviewed = TRUE, ids = id)),
.default = list(list(reviewed = FALSE, ids = id))
),
.by = keep_vars)
.by = dplyr::all_of(keep_vars))
keep_vars <- c("o_reviewed", keep_vars)
}
df <- data[c(keep_vars, name_column, value_column)] |>
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-mod_common_forms.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ describe(
})
rev_data <- get_review_data(bind_rows_custom(appdata)) |>
dplyr::mutate(
id = dplyr::row_number(),
reviewed = sample(c("Yes", "No"), dplyr::n(), replace = TRUE),
status = sample(c("new", "old", "updated"), dplyr::n(), replace = TRUE)
)
Expand Down

0 comments on commit a353f5d

Please sign in to comment.