Commit 2ad0c8d4 authored by Cedric Midoux's avatar Cedric Midoux
Browse files

update test-golem-recommended

parent dae8956b
......@@ -18,6 +18,21 @@ test_that("app server", {
}
})
# Configure this test to fit your need.
# testServer() function makes it possible to test code in server functions and modules, without needing to run the full Shiny application
testServer(app_server, {
# Set and test an input
session$setInputs(x = 2)
expect_equal(input$x, 2)
# Example of tests you can do on the server:
# - Checking reactiveValues
# expect_equal(r$lg, 'EN')
# - Checking output
# expect_equal(output$txt, "Text")
})
# Configure this test to fit your need
test_that(
"app launches",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment