tests/testthat/test-env.R

test_that("informative error if topic not set", {
  Sys.setenv("NTFY_TOPIC" = "")
  expect_snapshot(ntfy_topic(), error = TRUE)
})

Try the ntfy package in your browser

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

ntfy documentation built on Nov. 5, 2025, 6:58 p.m.