tests/testthat/test-utils-shiny.R

test_that("sidebar footer returns current package version", {
  
  as.character(sidebar_footer()) |> 
    expect_match(
      utils::packageVersion("R4GoodPersonalFinances") |> 
        as.character()
    )
})

test_that("sidebar footer returns current app version", {
  
  as.character(sidebar_footer(
    app_version = "9.9.9"
  )) |> 
    expect_match("9.9.9")
})

Try the R4GoodPersonalFinances package in your browser

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

R4GoodPersonalFinances documentation built on April 4, 2025, 1:48 a.m.