Skip to content

Commit

Permalink
add extra test for gene_plot
Browse files Browse the repository at this point in the history
  • Loading branch information
federicomarini committed Dec 19, 2024
1 parent f5e8df5 commit 6c79ee3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/testthat/test-gene_plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,20 @@ test_that("Basic gene plot is generated", {
labels_repe
)
})

expect_warning({
expect_message({
gene_plot(
dds = dds_macrophage,
gene = "ENSG00000285982",
assay = "counts",
intgroup = NULL,
annotation_obj = anno_df,
transform = TRUE,
labels_repel = FALSE
)
}, "Defaulting to")
}, "Please use")
})

test_that("Enforcing plot types", {
Expand Down

0 comments on commit 6c79ee3

Please sign in to comment.