tests/testthat/test-get_url_auth_redirect.R

context("get_url_auth_redirect")
test_that("Return the auth url when the configuration file is correct.", {
  config <- get_config()
  expect_equal(class(get_url_auth_redirect(config)), 'character')
})

test_that("Return FALSE when try to get the auth url with an incorrect configuration file", {
  config <- list()
  expect_false(get_url_auth_redirect(config))
})

Try the cognitoR package in your browser

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

cognitoR documentation built on Sept. 14, 2023, 1:07 a.m.