tests/testthat/test-route.R

test_that("Route", {

  r <- Route$new(
    path = "/:id"
  )

  expect_true(r$dynamic)
  expect_equal(r$pattern, "^/[[:alnum:][:space:][:punct:]]*$")
})
JohnCoene/ambiorix documentation built on Jan. 17, 2025, 11:11 p.m.