From 4dbea3e7b8e15582e9d56591084b3f3a8cba1726 Mon Sep 17 00:00:00 2001 From: Emily de la Rua Date: Thu, 6 Apr 2023 19:13:00 -0400 Subject: [PATCH] Fix checks --- tests/testthat/test-h_map_for_count_abnormal.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testthat/test-h_map_for_count_abnormal.R b/tests/testthat/test-h_map_for_count_abnormal.R index 640ab25188..d257ff3a8c 100644 --- a/tests/testthat/test-h_map_for_count_abnormal.R +++ b/tests/testthat/test-h_map_for_count_abnormal.R @@ -116,8 +116,8 @@ testthat::test_that( # because the function doesn't require the order of anl variable, but for unit test stability, we arrange the # order of anl variable within the split_rows group because the order of split_rows is something we want to check - result <- result - dplyr::group_by(PARAM) %>% + result <- result %>% + dplyr::group_by(PARAM) %>% dplyr::arrange(ANRIND, .by_group = TRUE) %>% data.frame()