graph-ecs/tests/query/match.test.js

22 lines
652 B
JavaScript
Raw Normal View History

2024-11-10 10:15:43 +01:00
import { describe, it } from 'node:test'
import assert from 'node:assert'
import { parse } from '../../src/parser.js'
import { node, edge, properties, statement } from '../../src/query/match.js'
//describe('match parser', () => {
// it('node should match a label', () => {
// const result = parse(node, '(:Node)')
// console.log(result.error.state)
// assert(result.isOk())
// })
//
// it('properties should do something', () => {
// const q = '(a:Node { name: "Rowan", species: "???" })'
// console.log(
// `parsing "${q}"\n`,
// parse(node, q).value[0][0]
// )
// })
//})