tests/testthat/test-TreeViewCollapseIcon.R

test_that("TreeViewCollapseIcon() returns shiny.tag, correct name and value", {
  expect_equal(class(TreeViewCollapseIcon()), c("muiTreeView", "shiny.tag"))
  expect_equal(
    environment(TreeViewCollapseIcon()[["children"]][[2]])[["data"]][["name"]],
    "TreeViewCollapseIcon"
  )
  expect_equal(
    environment(TreeViewCollapseIcon("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.