inst/tests/test-determine_target.R

context('determine_target')

test_that('it can determine a user target', {
  expect_equal(determine_target('john@here.com')$type, 'user')
  expect_equal(determine_target('@John')$type, 'user')
})
robertzk/hipchat documentation built on May 27, 2019, 10:34 a.m.