Skip to content

Commit 1e4e7d0

Browse files
committed
add test
1 parent 48a6325 commit 1e4e7d0

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed
Lines changed: 60 additions & 0 deletions
Loading

tests/testthat/test-annotate.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,9 @@ test_that("annotation_custom() and annotation_raster() adhere to scale transform
115115
expect_equal(as.numeric(ann$height), 8/10)
116116

117117
})
118+
119+
test_that("annotation_borders() can create a map", {
120+
skip_if_not_installed("maps")
121+
lifecycle::expect_deprecated(utah <- borders("state", "utah"))
122+
expect_doppelganger("annotation_borders utah", ggplot() + utah)
123+
})

0 commit comments

Comments
 (0)