Skip to content

Commit

Permalink
delete scale name tests
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Jan 18, 2024
1 parent 28eabfe commit 1c47e35
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/testthat/test-viridis.R
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
context("scales")
test_that("scales work correctly", {

fill_scale <- scale_fill_viridis(option = "A")
expect_equal(fill_scale$scale_name, "gradientn")

fill_scale <- scale_fill_viridis(option = "A", discrete = TRUE)
expect_equal(fill_scale$is_discrete(), TRUE)

color_scale <- scale_color_viridis(option = "A")
expect_equal(color_scale$scale_name, "gradientn")

color_scale <- scale_color_viridis(option = "A", discrete = TRUE)
expect_equal(color_scale$is_discrete(), TRUE)

Expand Down

0 comments on commit 1c47e35

Please sign in to comment.