File: test-jquery.R

package info (click to toggle)
r-cran-jquerylib 0.1.4%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 144 kB
  • sloc: sh: 28; makefile: 10
file content (12 lines) | stat: -rw-r--r-- 485 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
test_that("jquery_core(3) can be rendered", {
  script <- htmltools::renderDependencies(list(jquery_core(3, minified = TRUE)), "file")
  expect_snapshot(as.character(script))
})

test_that("jquery_core(2) can be rendered", {
  expect_error(script <- htmltools::renderDependencies(list(jquery_core(2, minified = FALSE)), "file"))
})

test_that("jquery_core(1) can be rendered", {
  expect_error(script <- htmltools::renderDependencies(list(jquery_core(1, minified = TRUE)), "file"))
})