tests/testthat/test-utils.R

test_that('render_msg_divs works', {
  expect_snapshot(render_msg_divs(c("hello", "hello"), c("user1", "user2"), "user4"))
})


test_that('render_msg_divs2 works', {
  expect_snapshot(render_msg_divs2(texts = c("hello", "hello"),
                                   users = c("user1", "user2"),
                                   act_user = "user4",
                                   time = as.POSIXct(0, origin = "1960-01-01")))
})

Try the shinyChatR package in your browser

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

shinyChatR documentation built on May 29, 2024, 8:18 a.m.