tests/testthat/test-dq_infobox.R

context("dq_infobox / dq_infobox")

test_that("dq_infobox works with any input", {
  expect_silent(dq_infobox(NULL))
  expect_silent(dq_infobox(NULL, 12))
  expect_silent(dq_infobox(NULL, NA, "message"))
  expect_silent(dq_infobox(NULL, Inf, TRUE, "icon"))
  expect_silent(dq_infobox(NULL, -12, NULL, NA, "#fff"))
  expect_silent(dq_infobox(NULL, href = "https://www.google.com"))
  expect_silent(dq_infobox(NULL, fill = NULL))
})

Try the dqshiny package in your browser

Any scripts or data that you put into this service are public.

dqshiny documentation built on May 2, 2019, 1:43 p.m.