Browse code

extending test suite for the latest changes, triggering error for gene_plot

Federico Marini authored on 10/03/2023 15:05:50
Showing 1 changed files

... ...
@@ -33,6 +33,18 @@ test_that("Basic gene plot is generated", {
33 33
     gene = "ENSG00000285982"
34 34
   )
35 35
   expect_is(p3_gtl, "gg")
36
+  
37
+  expect_error({
38
+    gene_plot(
39
+      dds = dds_macrophage,
40
+      gene = "ENSG00000285982",
41
+      assay = "counts",
42
+      intgroup = "factor_not_there",
43
+      annotation_obj = anno_df,
44
+      transform = TRUE,
45
+      labels_repe
46
+    )
47
+  })
36 48
 })
37 49
 
38 50
 test_that("Enforcing plot types", {