tests/testthat/test-flexCard.R

test_that("Simple test for flexcard function", {
  expect_type(r2resize::flexCard(
    item1 = c(
    bg = "https://r2resize.obi.obianom.com/m/image1.jpg",
    icon = "edit",
    title="Sample text 1",
    subtitle="A cool subtitle"),
    item2 = c(
    bg = "https://r2resize.obi.obianom.com/m/image2.jpg",
    icon = "edit",
    title="Sample text 2",
    subtitle="A cool subtitle",
    icon.color = "blue",
    text.color = "brown"
    )
  ),"list")
})

Try the r2resize package in your browser

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

r2resize documentation built on May 29, 2024, 11:55 a.m.