Skip to content

Commit

Permalink
Update test-ggplotly_methods.R
Browse files Browse the repository at this point in the history
  • Loading branch information
Biomiha authored Nov 3, 2023
1 parent 767b2b5 commit 8c0e87a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-ggplotly_methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test_that("ggplot()", {
expect_s3_class(p, "ggplot")
# assay data
g <- sample(rownames(df), 1)
fd <- join_features(df, g, shape="wide")
fd <- join_features(df, g, shape="wide", assays = "counts")
p <- ggplot(fd, aes(factor, .data[[make.names(g)]]))
expect_silent(show(p))
expect_s3_class(p, "ggplot")
Expand All @@ -27,7 +27,7 @@ test_that("plotly()", {
expect_s3_class(p, "plotly")
# assay data
g <- sample(rownames(df), 1)
fd <- join_features(df, g, shape="wide")
fd <- join_features(df, g, shape="wide", assays = "counts")
p <- plot_ly(fd, x=~factor, y=g, type="violin")
expect_silent(show(p))
expect_s3_class(p, "plotly")
Expand Down

0 comments on commit 8c0e87a

Please sign in to comment.