tests/testthat/test-igraphToJson.R

context("igraphToJson works")
data(flightGraph)
thisJson <- igraphToJson(flightGraph)

test_that('igraphToJson returns a json object', {
    expect_is(thisJson, 'json')
    expect_equal(length(thisJson), 1)
})
jaredlander/GraphConvert documentation built on May 17, 2017, 10:43 a.m.