tests/testthat/test-parse-open-api.R

test_that("can parse open api spec", {
  skip_on_cran()
  skip_if(getRversion() < "3.6")
  expect_no_error(
    # supprss `incomplete final line` warning
    suppressWarnings(
      parse_openapi_spec("https://dtrnk0o2zy01c.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json")
    )
  )
})

Try the tibblify package in your browser

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

tibblify documentation built on May 29, 2024, 6:36 a.m.