library(jug)
context("testing handler adding")
test_that("handlers are correctly added to the jug instance",{
j<-
jug() %>%
get("/", function(req, res){"test"})
expect_equal(length(j$request_handler$middlewares), 1)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.