# note: The 'Run tests' button in RStudio may not work (Please let me know if you can make it work!)
# to run this test use # test_file('{{{test_path}}}')
# import the module
library(dymiumCore)
# set logger's threshold to 'warn' to mute info level loggings
dymiumCore:::lg$set_threshold(level = 'warn')
{{{event_function_name}}} <- modules::use(here::here('{{{event_path}}}'))
# write your on tests using testthat::test_that(...)
test_that('event works', {
# for example
expect_true(1 == 1)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.