 @description Test queryOne non existent node, should return undefined
 queryOne: (cypher) ->
 ###
-Tinytest.add 'db.queryOne [ForSureNonExists]', (test) ->
+Tinytest.add 'Neo4jDB - db.queryOne - [ForSureNonExists]', (test) ->
   test.equal db.queryOne("MATCH (n:ForSureNonExists) RETURN n"), undefined
 
 

  test.isTrue _.isFunction node.update

__relationCRC__ = (test, r, from, to, type, props = {}) ->
    test.instanceOf r, Neo4jRelationship
    test.isTrue _.isFunction r.get
    test.isTrue _.isFunction r.delete
    test.isTrue _.isFunction r.update
    test.isTrue _.isFunction r.__refresh

    _r = r.get()
    test.isTrue _.has _r, 'id'
    test.isTrue _.has _r, 'metadata'
    test.isTrue _.has _r, 'type'
    test.isTrue _.has _r, 'start'
    test.isTrue _.has _r, 'end'

    test.isTrue _r.type is type

    if props
      for key, value of props
        test.isTrue _.has _r, key
        test.equal _r[key], value

    test.equal _r.start, from if from
    test.equal _r.end, to if to

Tinytest.add 'service endpoints', (test) ->
  test.isTrue _.isArray db.propertyKeys()
  test.isTrue _.isArray db.labels()
  test.isTrue _.isArray db.relationshipTypes()

@description Check nodes creation / setProperties / deletion
db.nodes(props).setProperties({name: val, name2: val2})
###
Tinytest.add 'Neo4jNode - setProperties({Object})', (test) ->
  node = db.nodes({one: 1})
  _id = node.get().id
  
