File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -11959,6 +11959,24 @@ describe('JsonLdParser', () => {
1195911959 ] ) ;
1196011960 } ) ;
1196111961
11962+ it ( 'as embedded object with property and with subject when rdfstar is disabled' , async ( ) => {
11963+ parser = new JsonLdParser ( { rdfstar : false } ) ;
11964+ const stream = streamifyString ( `
11965+ {
11966+ "@id": "ex:s",
11967+ "ex:prop": {
11968+ "@id": {
11969+ "@id": "ex:subjectEmbedded",
11970+ "ex:prop": "valueEmbedded"
11971+ },
11972+ }
11973+ }
11974+ ` ) ;
11975+ await expect ( arrayifyStream ( stream . pipe ( parser ) ) ) . rejects
11976+ . toThrow ( new ErrorCoded ( `Found illegal @id '[object Object]'` ,
11977+ ERROR_CODES . INVALID_ID_VALUE ) ) ;
11978+ } ) ;
11979+
1196211980 it ( 'as embedded object with property and without subject' , async ( ) => {
1196311981 const stream = streamifyString ( `
1196411982{
You can’t perform that action at this time.
0 commit comments