context("test-eq_map")
map_output <- noaa %>%
eq_clean_data %>%
dplyr::filter(
country == "MEXICO",
lubridate::year(date) >= 2000
) %>%
eq_map("date")
test_that("correct class", {
expect_is(map_output, "leaflet")
})
test_that("error on wrong data", {
expect_error(eq_map(mtcars, "foo"), "Please, provide correct data")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.