tests/testthat/test-onload.R

test_that("onload for turf-extent worked", {
  skip_on_cran()

  obj_names <- c(
    "eval", "assign", "validate", "call",
    "reset", "source", "console", "get"
  )
  expect_s3_class(ext, "V8")
  expect_true(all(obj_names %in% ls(ext)))
  expect_true(any(grepl("extent", ext$get(leaflet::JS("Object.keys(global)")))))
})

Try the geojsonio package in your browser

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

geojsonio documentation built on Sept. 8, 2023, 5:54 p.m.