Skip to content

Commit

Permalink
suppress deprecation warning in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhoffa committed Jan 23, 2024
1 parent 9589131 commit 54e8078
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/testthat/test-scale_colour_r2dii.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ test_that("with data having specific level factors, scales colours as expected
)
)

p <- plot_emission_intensity(data)
p <- suppressWarnings(
plot_emission_intensity(data),
classes = "lifecycle_warning_deprecated"
)
p <- p + scale_colour_r2dii(
colour_labels = input_color_scale,
labels = input_levels
Expand Down

0 comments on commit 54e8078

Please sign in to comment.