diff --git a/tests/testthat/test-utils_default_stats_formats_labels.R b/tests/testthat/test-utils_default_stats_formats_labels.R index 8c2b8bb712..9583faac18 100644 --- a/tests/testthat/test-utils_default_stats_formats_labels.R +++ b/tests/testthat/test-utils_default_stats_formats_labels.R @@ -199,14 +199,11 @@ testthat::test_that("labels_use_control works as expected", { }) testthat::test_that("summary_formats works as expected", { - testthat::expect_warning( - result <- summary_formats() %>% - unlist() # More compact fruition - ) + result <- summary_formats() %>% unlist() # More compact fruition res <- testthat::expect_silent(result) testthat::expect_snapshot(res) - testthat::expect_warning(result <- summary_formats(type = "counts", include_pval = TRUE)) + result <- summary_formats(type = "counts", include_pval = TRUE) testthat::expect_true(all(result[c("n", "count", "n_blq")] == "xx.")) testthat::expect_identical(result[["pval_counts"]], "x.xxxx | (<0.0001)") })