tests/testthat/test-mall.R

test_that("malls can be created and accessed", {
  backend <- storr::storr(storr::driver_environment())
  mall <- new_mall(list(
    a = new_storefront("test", backend),
    b = new_storefront("test2", backend)
  ))
  expect_snapshot(print(mall))
  expect_snapshot(mall$a <- 1, error = TRUE)
  expect_snapshot(mall[1], error = TRUE)
  expect_snapshot(mall[1] <- 1, error = TRUE)
})

Try the firesale package in your browser

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

firesale documentation built on Dec. 11, 2025, 9:06 a.m.