File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -1701,6 +1701,43 @@ describe('events', () => {
1701
1701
testNotStrict : true
1702
1702
} ) ;
1703
1703
} ) ;
1704
+
1705
+ it ( 'should be called on invalid reserved term' , async ( ) => {
1706
+ const input =
1707
+ {
1708
+ "@context" : {
1709
+ "@RESERVED" : "ex:test-function-handler"
1710
+ } ,
1711
+ "@RESERVED" : "test"
1712
+ }
1713
+ ;
1714
+ const expected = [ ] ;
1715
+
1716
+ await _test ( {
1717
+ type : 'expand' ,
1718
+ input,
1719
+ expected,
1720
+ mapCounts : {
1721
+ expansionMap : 2 ,
1722
+ unmappedProperty : {
1723
+ '@RESERVED' : 1
1724
+ } ,
1725
+ unmappedValue : {
1726
+ '__unknown__' : 1
1727
+ }
1728
+ } ,
1729
+ eventCounts : {
1730
+ codes : {
1731
+ 'dropping empty object' : 1 ,
1732
+ 'invalid property expansion' : 1 ,
1733
+ 'invalid reserved term' : 1
1734
+ } ,
1735
+ events : 3
1736
+ } ,
1737
+ testNotSafe : true ,
1738
+ testNotStrict : true
1739
+ } ) ;
1740
+ } ) ;
1704
1741
} ) ;
1705
1742
1706
1743
// FIXME naming
You can’t perform that action at this time.
0 commit comments