tests/testthat/test_log_to_js_console.R

context("log_to_js_console")

test_that("logging events", {

  expect_error(fixed = TRUE,
    shinyEventLogger:::log_to_file(),
    "A header of log entry is missing."
    )

  expect_false(shinyEventLogger:::log_to_js_console(header = ""))

})

Try the shinyEventLogger package in your browser

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

shinyEventLogger documentation built on May 1, 2019, 9:26 p.m.