@@ -4,10 +4,10 @@ import { array, assert, length, object, pipe } from 'valibot';
44
55import blankNodeIdentifier from './BlankNodeIdentifier' ;
66import './expectExtendValibot' ;
7+ import flatNodeObject from './FlatNodeObject' ;
78import flattenNodeObject from './flattenNodeObject' ;
89import identifier from './Identifier' ;
910import type { Literal } from './Literal' ;
10- import { nodeObject } from './NodeObject' ;
1111import { nodeReference } from './NodeReference' ;
1212
1313beforeEach ( ( ) => {
@@ -46,7 +46,7 @@ scenario('flattenNodeObject()', bdd => {
4646 assert ( blankNodeIdentifier ( ) , output [ '@id' ] ) ;
4747 } )
4848 . and ( 'should return a graph with one node object' , ( _ , { graph } ) => {
49- assert ( pipe ( array ( nodeObject ( ) ) , length ( 1 ) ) , graph ) ;
49+ assert ( pipe ( array ( flatNodeObject ( ) ) , length ( 1 ) ) , graph ) ;
5050 } )
5151 . and ( 'should return a graph with the node object' , ( [ _ , expected ] , { graph, output } ) => {
5252 expect ( graph ) . toEqual ( [ { ...expected , '@id' : output [ '@id' ] } ] ) ;
@@ -102,7 +102,7 @@ scenario('flattenNodeObject()', bdd => {
102102
103103 const geoObject = graph . find ( object => object !== rootObject ) ;
104104
105- assert ( nodeObject ( ) , geoObject ) ;
105+ assert ( flatNodeObject ( ) , geoObject ) ;
106106
107107 expect ( rootObject . geo [ '@id' ] ) . toBe ( geoObject [ '@id' ] ) ;
108108 } ) ;
0 commit comments