tests/testthat/test_tmux.R

context("tmux")

test_that("tmux is detected", {
  withr::with_envvar(list(TMUX = "foo"), {
    expect_is(find_tmux(), "cmd")
  })

  withr::with_envvar(list(TMUX = ""), {
    expect_null(find_tmux())
  })
})
mllg/gtfo documentation built on May 23, 2019, 1:24 p.m.