context("test_get_location - unit tests")
test_that("get_location('ark:/57799/b9j69h') returns expected value", {
load("demo-config.rda")
server <- server(demo_config)
expect_message(get_location("ark:/57799/b9j69h"), server = server)
expect_identical(
get_location("ark:/57799/b9j69h", server = server),
"https://nih-commons.s3.amazonaws.com/misc/agr-example.tgz")
})
test_that("get_location(minid) returns expected value", {
load("demo.rda")
expect_identical(get_location(demo),
"https://nih-commons.s3.amazonaws.com/misc/agr-example.tgz")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.