@@ -35,15 +35,15 @@ describe('JsonLdConfigBuilder', () => {
3535 . filterPropertiesByIds ( [ 'org:hyperweb' ] , { exclude : [ 'member' ] } )
3636 . getConfig ( ) ;
3737
38- expect ( config . propertyFiltersByIds ) . toMatchSnapshot ( ) ;
38+ expect ( config . filters ?. propertyFiltersByIds ) . toMatchSnapshot ( ) ;
3939 } ) ;
4040
4141 test ( 'supports property filtering by types' , ( ) => {
4242 const config = createJsonLdConfig ( )
4343 . filterPropertiesByTypes ( [ 'Article' ] , { include : [ 'headline' , 'author' ] } )
4444 . getConfig ( ) ;
4545
46- expect ( config . propertyFiltersByTypes ) . toMatchSnapshot ( ) ;
46+ expect ( config . filters ?. propertyFiltersByTypes ) . toMatchSnapshot ( ) ;
4747 } ) ;
4848
4949 test ( 'supports chaining multiple configurations' , ( ) => {
@@ -61,13 +61,13 @@ describe('JsonLdConfigBuilder', () => {
6161 expect ( config . filters ?. excludeTypes ) . toEqual ( [ 'ImageObject' ] ) ;
6262 expect ( config . filters ?. maxEntities ) . toBe ( 10 ) ;
6363 expect ( config . filters ?. requiredProperties ) . toEqual ( [ 'name' ] ) ;
64- expect ( config . propertyFiltersByIds ) . toHaveLength ( 1 ) ;
64+ expect ( config . filters ?. propertyFiltersByIds ) . toHaveLength ( 1 ) ;
6565 } ) ;
6666
6767 test ( 'supports subgraph extraction configuration' , ( ) => {
6868 const config = createJsonLdConfig ( ) . baseGraph ( graph ) . subgraph ( [ 'person:danlynch' ] ) . getConfig ( ) ;
6969
70- expect ( config . subgraphRoots ) . toMatchSnapshot ( ) ;
70+ expect ( config . filters ?. subgraphRoots ) . toMatchSnapshot ( ) ;
7171 } ) ;
7272
7373 test ( 'supports adding additional entities' , ( ) => {
0 commit comments