tests/testthat/test-jquery.R

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", {
  script <- htmltools::renderDependencies(list(jquery_core(2, minified = FALSE)), "file")
  expect_snapshot(as.character(script))
})

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

Try the jquerylib package in your browser

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

jquerylib documentation built on April 27, 2021, 1:06 a.m.