-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for
theme_dune
+ change "local" to point to the filename
Add test for `theme_dune` + change "local" to point to the filename itself
- Loading branch information
Showing
3 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
test_that("`theme_dune` runs", { | ||
x <- theme_dune() | ||
|
||
testthat::expect_equal(class(x), c('theme', 'gg')) | ||
}) | ||
|
||
test_that("output of `theme_dune` is stable", { | ||
testthat::skip_if_not_installed('vdiffr') | ||
vdiffr::expect_doppelganger('A blank theme_dune plot', ggplot2::ggplot() + theme_dune()) | ||
}) |