Skip to content

Commit 00a2a13

Browse files
committed
another test fix
1 parent 42ab30d commit 00a2a13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-plotly-name.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ test_that("can override name argument", {
3434

3535
test_that("doesn't break old behavior", {
3636
# from https://community.plot.ly/t/manual-color-bug/10479
37-
density1 <- density(diamonds[diamonds$cut %in% "Fair",])
38-
density2 <- density(diamonds[diamonds$cut %in% "Ideal",])
37+
density1 <- density(diamonds[diamonds$cut %in% "Fair", ]$carat)
38+
density2 <- density(diamonds[diamonds$cut %in% "Ideal",]$carat)
3939

4040
l <- plot_ly(x = ~density1$x, y = ~density1$y, type = 'scatter', mode = 'lines', name = 'Fair cut', fill = 'tozeroy',
4141
fillcolor = 'rgba(168, 216, 234, 0.5)',

0 commit comments

Comments
 (0)