tests/testthat/test_basics.R

context("Basic Functions")




test_that('function works and returns correct type', {

  nodes <- data.frame(id = c('a','b'))
  edges <- data.frame(id = 'ab', source = 'a', target = 'b')
  ct <- cytoscape(nodes = nodes, edges = edges)

  expect_is(ct, c('cytoscape','htmlwidget'))

})
mrjoh3/cytoscape documentation built on Nov. 14, 2020, 9:29 a.m.