tests/testthat/test-mime.R

test_that("mime_find", {
  expect_equal(mime_find("json"), c(json = "application/json"))
  expect_equal(mime_find("blahxml"), c(xml = "text/xml"))
})

Try the webfakes package in your browser

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

webfakes documentation built on Oct. 1, 2023, 9:06 a.m.