Debian Codegraph @

tests/testthat/test-built-files.R

raw
1 test_that("shiny.js version was replaced", {
2 jsFiles <- system.file(
3 file.path("www", "shared", c("shiny.js", "shiny.min.js")),
4 package = "shiny"
5 )
6
7 lapply(jsFiles, function(jsFile) {
8 jsFileContent <- paste(suppressWarnings(readLines(jsFile)), collapse = "\n")
9 expect_false(grepl("\\{\\{\\sVERSION\\s\\}\\}", jsFileContent))
10 })
11 })