tests/testthat/test_landing_page.R

context("Landing page")

tempfile_sce <- tempfile(fileext = "_sce.rds")
saveRDS(sce, file = tempfile_sce)

thing <- list(ReducedDimensionPlot(), ReducedDimensionPlot())
tempfile_params <- tempfile(fileext = "_params.rds")
saveRDS(thing, file = tempfile_params)

test_that("createLandingPage returns a function ", {

    input <- new.env()
    output <- new.env()
    session <- new.env()

    # All NULL arguments
    out <- createLandingPage()
    expect_is(out, "function")
    expect_named(formals(out), c("FUN", "input", "output", "session"))

    out2 <- out(FUN=print, input=input, output=output, session=session)
    expect_null(out2)
    expect_named(output, c("allPanels"))
})

Try the iSEE package in your browser

Any scripts or data that you put into this service are public.

iSEE documentation built on Feb. 3, 2021, 2:01 a.m.