tests/testthat/test-connect_nodes.R

test_that("connect_nodes without properties works", {
  expect_equal(connect_nodes(1, 2), "INSERT INTO edges VALUES(\"1\", \"2\", json('[]'));")
})

test_that("connect_nodes without properties works", {
  expect_equal(connect_nodes(1, 2, list("test" = 1)), "INSERT INTO edges VALUES(\"1\", \"2\", json('{\"test\":1}'));")
})

Try the simplegraphdb package in your browser

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

simplegraphdb documentation built on March 12, 2021, 5:05 p.m.