Skip to content

Commit

Permalink
Fix test error with the development version of ggplot2
Browse files Browse the repository at this point in the history
  • Loading branch information
yutannihilation committed Jun 3, 2024
1 parent cf61d1f commit eaa947b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ expect_equal_layer <- function(x, y) {
x$constructor <- NULL
y$constructor <- NULL

x$aes_params <- x$aes_params[sort(names(x$aes_params))]
y$aes_params <- y$aes_params[sort(names(y$aes_params))]
x$mapping <- x$mapping[sort(names(x$mapping))]
y$mapping <- y$mapping[sort(names(y$mapping))]
x$data <- tibble::as_tibble(x$data[, sort(colnames(x$data))])
Expand Down

0 comments on commit eaa947b

Please sign in to comment.