tests/testthat/test-markdownTables.R

test_that("FgseaList", {
    object <- fgsea
    alphaThreshold(object) <- 0.99
    collection <- collectionNames(object)[[1L]]
    output <- capture.output({
        markdownTables(
            object = object,
            collection = collection
        )
    })
    output <- toString(output)
    expect_match(
        object = output,
        regexp = "Upregulated"
    )
    expect_match(
        object = output,
        regexp = "Downregulated"
    )
})
acidgenomics/acidgsea documentation built on Oct. 5, 2023, 7:35 p.m.