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 = ""))

})
kalimu/shinyEventLogger documentation built on May 9, 2019, 4:06 p.m.