Skip to content

Commit 9104971

Browse files
committed
Fix this unit test now with ggplot2 v4.0.0 in mind
See https://www.tidyverse.org/blog/2025/09/ggplot2-4-0-0/ for details about ggplot2's update ```R > class(vis_gene(spe, geneid = c("sum_umi", rownames(spe)[1]))) [1] "ggplot2::ggplot" "ggplot" "ggplot2::gg" "S7_object" "gg" ```
1 parent aff00db commit 9104971

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/testthat/test-vis_gene.R

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,12 @@ test_that(
4747
)
4848

4949
# Trivially check success with legitimate input
50-
expect_equal(
51-
class(vis_gene(spe, geneid = c("sum_umi", rownames(spe)[1]))),
52-
c("gg", "ggplot")
50+
expect_true(
51+
all(
52+
c("gg", "ggplot") %in% class(
53+
vis_gene(spe, geneid = c("sum_umi", rownames(spe)[1]))
54+
)
55+
)
5356
)
5457

5558

0 commit comments

Comments
 (0)