Skip to content

Commit

Permalink
add data frame and other items to suppress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tonywu1999 committed Jan 10, 2025
1 parent 6bb930d commit 06308c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-utils_visualizeNetworks.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ test_that(".addLegendInCytoscape works correctly", {
list(color = "#FFA590", label = "label3")
)

mock_getNodePosition <- mock()
mock_getNodePosition <- mock(data.frame(x_position = c("50", "51")))
stub(
.addLegendInCytoscape, "getNodePosition",
mock_getNodePosition
)

mock_getNetworkCenter <- mock()
mock_getNetworkCenter <- mock(list(x = 2, y = 5))
stub(
.addLegendInCytoscape, "getNetworkCenter",
mock_getNetworkCenter
Expand All @@ -35,7 +35,7 @@ test_that(".addLegendInCytoscape works correctly", {
mock_groupAnnotation
)

mock_getAnnotationList <- mock()
mock_getAnnotationList <- mock(c("id1", "id2"))
stub(
.addLegendInCytoscape, "getAnnotationList",
mock_getAnnotationList
Expand Down

0 comments on commit 06308c5

Please sign in to comment.