tests/testthat/test-util.R

test_that("remove NULL from list", {
  expect_identical(
    list_remove_empty(list(1, NULL, 3)),
    list(1, 3)
  )
  expect_identical(
    list_remove_empty(list(1, list(1, NULL, 3), 3)),
    list(1, list(1, 3), 3)
  )
})

Try the clockify package in your browser

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

clockify documentation built on Jan. 9, 2026, 9:06 a.m.