Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
ewenme authored Mar 18, 2024
2 parents e72fcad + ec0368f commit ff1a375
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/testthat/test-scales.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ test_that('scale_colour_ghibli_d takes name args',{
})

test_that('scale_colour_ghibli_d fails as expected',{
expect_error(base_color_plot + scale_colour_ghibli_d())

expect_error(base_color_plot + scale_colour_ghibli_d(name = 'PonyoMedium', direction = 2))
throws_error(base_color_plot + scale_colour_ghibli_d(name = 'PonyoMedium', direction = 2))
})


Expand All @@ -59,7 +57,5 @@ test_that('scale_fill_ghibli_d takes palette args',{
})

test_that('scale_fill_ghibli_d fails as expected',{
expect_error(base_fill_plot + scale_fill_ghibli_d())

expect_error(base_fill_plot + scale_fill_ghibli_d(name = 'PonyoMedium', direction = 2))
throws_error(base_fill_plot + scale_fill_ghibli_d(name = 'PonyoMedium', direction = 2))
})

0 comments on commit ff1a375

Please sign in to comment.