tests/testthat/test-dq_busy.R

context("dq_busy / dq_busy")

test_that("dq_busy works with all inputs", {
  expect_is(dq_busy(), "shiny.tag")
  expect_is(dq_busy(NULL), "shiny.tag")
  expect_is(dq_busy(NULL, NULL), "shiny.tag")
  expect_is(dq_busy(NULL, NULL, NULL), "shiny.tag")
  expect_is(dq_busy("iconPath", "500", "noFadeIn"), "shiny.tag")
  expect_is(dq_busy(TRUE, FALSE, TRUE), "shiny.tag")
  expect_is(dq_busy(NULL, 1500, "fadeInTop"), "shiny.tag")
})

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.