tests/testthat/test-get_map_data-kommuner.R

test_that("get_map_data() fetches data properly and provides `kommuner` in the proper format with cache = TRUE", {
  skip_on_cran()
  Sys.setenv(TZ = "UTC")
  expect_snapshot(get_map_data(type = "kommuner", cache = TRUE))
  expect_snapshot(get_map_data(type = "kommuner", cache = FALSE))
  expect_snapshot(get_map_data(type = "kommuner"))
  expect_snapshot(get_map_data(type = "kommuner"))
  expect_snapshot(get_map_data(type = "kommuner"))
})

Try the dawaR package in your browser

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

dawaR documentation built on April 3, 2025, 10:35 p.m.