tests/testthat/test-apexcharter.R

context("apexcharter")

test_that("apexchart works", {
  
  ax <- apexchart(list())
  expect_is(ax, "apexcharter")
})


test_that("add_locale_apex works", {
  
  ax <- apexchart(list(chart = list(defaultLocale = "fr"))) %>% 
    add_locale_apex
  expect_is(ax, "apexcharter")
  expect_is(ax$x$ax_opts$chart$locales, "list")
})
dreamRs/apexcharter documentation built on May 23, 2024, 11:59 p.m.