tests/testthat/test-BottomNavigationAction.R

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

Try the muiMaterial package in your browser

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

muiMaterial documentation built on Jan. 26, 2026, 5:07 p.m.