tests/testthat/test-scale_fill_who.R

context("scale_colour_who")

test_that("scale_fill_who can be used with package plotting functions", {
  plot <- plot_tb_burden_summary(
    countries = "United Kingdom", compare_all_regions = FALSE,
    compare_to_region = TRUE, verbose = FALSE
  ) +
    theme_who() +
    scale_fill_who(reverse = TRUE)

  expect_true(!is.null(plot))
  expect_equal("ggplot", class(plot)[2])
  skip_on_cran()
  vdiffr::expect_doppelganger("who-fill-summary", plot)
})

Try the getTBinR package in your browser

Any scripts or data that you put into this service are public.

getTBinR documentation built on July 2, 2020, 12:31 a.m.