Skip to content

Update tests to expect ggplot S3 class (fixes #1)#2

Open
xec-cm wants to merge 1 commit intoBiotechPedro:mainfrom
xec-cm:bug_fix
Open

Update tests to expect ggplot S3 class (fixes #1)#2
xec-cm wants to merge 1 commit intoBiotechPedro:mainfrom
xec-cm:bug_fix

Conversation

@xec-cm
Copy link

@xec-cm xec-cm commented Feb 9, 2026

Replace expect_type(..., "list") with expect_s3_class(..., "ggplot") in plotting tests because the plotting helpers return ggplot objects rather than plain lists. Updated tests: tests/testthat/test-plotmSdynamics.R, tests/testthat/test-plotmSheatmap.R, tests/testthat/test-plotmSlinesCV.R, tests/testthat/test-plotmSscatter.R to assert the correct S3 class.

Replace expect_type(..., "list") with expect_s3_class(..., "ggplot") in plotting tests because the plotting helpers return ggplot objects rather than plain lists. Updated tests: tests/testthat/test-plotmSdynamics.R, tests/testthat/test-plotmSheatmap.R, tests/testthat/test-plotmSlinesCV.R, tests/testthat/test-plotmSscatter.R to assert the correct S3 class.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant