tests/testthat/test_null_legend.R

context("new_null_legend")

test_that("initialization", {
  # create object
  x <- new_null_legend()
  # run tests
  expect_is(x, "NullLegend")
})

test_that("widget method", {
  # create object
  x <- new_null_legend()
  # run tests
  expect_equal(
    x$get_widget_data(),
    list(
      type = "NullLegend"
    )
  )
})
NCC-CNC/wheretowork documentation built on Feb. 27, 2025, 6:11 p.m.