diff --git a/R/reporter_previewer_module.R b/R/reporter_previewer_module.R index 19b707b34..56e906e46 100644 --- a/R/reporter_previewer_module.R +++ b/R/reporter_previewer_module.R @@ -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)))) diff --git a/tests/testthat/test-report_previewer_module.R b/tests/testthat/test-report_previewer_module.R index dc7e01445..3a1b9c825 100644 --- a/tests/testthat/test-report_previewer_module.R +++ b/tests/testthat/test-report_previewer_module.R @@ -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(