tests/testthat/test-options.R

test_that("options", {
  options(ambiorix.port.force = 3000L)
  app <- Ambiorix$new()
  expect_equal(app$port, 3000L)
})

Try the ambiorix package in your browser

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

ambiorix documentation built on April 3, 2025, 9:34 p.m.