Skip to content

Commit

Permalink
fix vertmap tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Oct 29, 2018
1 parent 0b9b320 commit 87a0442
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/testthat/test-vertmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ test_that("vertmap works with vertsearch", {
expect_is(map1, "gg")
expect_is(map1$data, "data.frame")
expect_equal(map1$labels$colour, "scientificname")
expect_equal(as.character(map1$mapping$x), "long")
expect_is(map1$mapping$x, "name")
expect_is(map1$mapping$x, "quosure")
})

test_that("vertmap works for maps not distinguished by color", {
Expand All @@ -23,8 +22,7 @@ test_that("vertmap works for maps not distinguished by color", {
expect_is(map1, "gg")
expect_is(map1$data, "data.frame")
expect_null(map1$labels$colour) # the difference here
expect_equal(as.character(map1$mapping$x), "long")
expect_is(map1$mapping$x, "name")
expect_is(map1$mapping$x, "quosure")
})

test_that("vertmap fails well", {
Expand Down

0 comments on commit 87a0442

Please sign in to comment.