tests/testthat/test-SimpleTreeView.R

test_that("SimpleTreeView() returns shiny.tag, correct name and value", {
  expect_equal(class(SimpleTreeView()), c("muiTreeView", "shiny.tag"))
  expect_equal(
    environment(SimpleTreeView()[["children"]][[2]])[["data"]][["name"]],
    "SimpleTreeView"
  )
  expect_equal(
    environment(SimpleTreeView("Test")[["children"]][[2]])[["data"]][[
      "props"
    ]][["value"]][["children"]],
    "Test"
  )
})

Try the muiTreeView package in your browser

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

muiTreeView documentation built on Oct. 12, 2026, 5:08 p.m.