From e09e0aad338ba48c1f3acdb8c597543a814e8ad6 Mon Sep 17 00:00:00 2001 From: William Gearty Date: Tue, 10 Oct 2023 11:28:15 -0400 Subject: [PATCH] Fix test? --- .../phylopic-in-background.svg | 48 +++---------------- tests/testthat/test-add_phylopic_base.R | 3 +- 2 files changed, 8 insertions(+), 43 deletions(-) diff --git a/tests/testthat/_snaps/add_phylopic_base/phylopic-in-background.svg b/tests/testthat/_snaps/add_phylopic_base/phylopic-in-background.svg index 5fd521df..f6b9bbf8 100644 --- a/tests/testthat/_snaps/add_phylopic_base/phylopic-in-background.svg +++ b/tests/testthat/_snaps/add_phylopic_base/phylopic-in-background.svg @@ -46,50 +46,14 @@ 1 - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + diff --git a/tests/testthat/test-add_phylopic_base.R b/tests/testthat/test-add_phylopic_base.R index 67645fef..843063bf 100644 --- a/tests/testthat/test-add_phylopic_base.R +++ b/tests/testthat/test-add_phylopic_base.R @@ -4,7 +4,8 @@ test_that("add_phylopic_base works", { # phylopic in background, with name expect_doppelganger("phylopic in background", function() { plot(1, 1, type = "n", main = "A cat") - add_phylopic_base(name = "Felis silvestris", verbose = TRUE) + add_phylopic_base(name = "Felis silvestris catus", ysize = .7, + verbose = TRUE) }) # png phylopic in background