Skip to content

Commit b711532

Browse files
committed
add tests for setup
1 parent 9550638 commit b711532

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/testthat/test-setup.R

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Test the setup file (make sure translator worked etc.)
2+
test_that("Shiny i18n object is a translator",
3+
{expect_equal(class(i18n)[1], "Translator")})
4+
5+
test_that("Thumbnail 1 label object is a function",
6+
{expect_type(object = thumbnail_label2,type = "closure")})
7+
8+
test_that("Jumbotron text object is a function",
9+
{expect_type(object = jumbotron2,type = "closure")})

0 commit comments

Comments
 (0)