Skip to content

Commit

Permalink
adapt test
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Jan 31, 2025
1 parent 5c23a55 commit 8b425b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/testthat/test_glyph.r
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ test_that("glyphs are rendered", {

test_that("glyph labels are applied", {
res <- bed_glyph(bed_merge(x, id = dplyr::n()), label = "id")
expect_equal(res$labels$label, "id")
if ("get_labs" %in% getNamespaceExports("ggplot2")) {
expect_equal(ggplot2::get_labs(res)$label, "id")
} else {
expect_equal(res$labels$label, "id")
}
})

a <- tibble::tribble(
Expand Down

0 comments on commit 8b425b1

Please sign in to comment.