diff --git a/tests/testthat/test-plots.R b/tests/testthat/test-plots.R index 03e0cd0e..21ae2dff 100644 --- a/tests/testthat/test-plots.R +++ b/tests/testthat/test-plots.R @@ -248,7 +248,7 @@ test_that("pair.ia can plot p-values", { expect_is(p1, "ggplot") expect_is(p2, "ggplot") # The previous plot is not the same as the current plot - expect_failure(expect_identical(p1$data, p2$data)) + expect_failure(expect_equal(dim(p1$data), dim(p2$data))) }) context("diversity_ci plots")