Skip to content

Close 1089 use title case in default module label #1459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion R/reporter_previewer_module.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#'
#' @export
#'
reporter_previewer_module <- function(label = "Report previewer", server_args = list()) {
reporter_previewer_module <- function(label = "Report Previewer", server_args = list()) {
checkmate::assert_string(label)
checkmate::assert_list(server_args, names = "named")
checkmate::assert_true(all(names(server_args) %in% names(formals(teal.reporter::reporter_previewer_srv))))
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-report_previewer_module.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ testthat::test_that("report_previewer_module throws no error and stores label if

testthat::test_that("report_previewer_module default label is Report previewer ", {
r_p_m <- reporter_previewer_module()
testthat::expect_equal(r_p_m$label, "Report previewer")
testthat::expect_equal(r_p_m$label, "Report Previewer")
})

testthat::test_that(
Expand Down
Loading