tests/testthat/test-get_last_news.R

with_mock_dir("get_last_news", {
   test_that("get_last_news", {

      expect_message(get_last_news(), "Last news from Geoservice website")
   })
}, simplify = FALSE)

Try the happign package in your browser

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

happign documentation built on Sept. 11, 2024, 7:17 p.m.