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 presser package in your browser

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

presser documentation built on July 1, 2020, 5:49 p.m.