test_that("universe_search() works", {
httptest2::with_mock_dir("global-search", {
packages <- global_search(query = "needs:gert", limit = 1L)
})
expect_type(packages, "list")
expect_gt(length(packages), 0L)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.