@@ -1609,3 +1609,68 @@ export function runCommonSchemaTests(suiteId: string, commonPath: JsonPath): voi
16091609 } )
16101610 } )
16111611}
1612+
1613+ export function runAddRemoveDefaultValuesSchemaTests ( suiteId : string ) : void {
1614+ describe ( 'Add/remove default values' , ( ) => {
1615+
1616+ test ( 'Add minItems with default value for array property' , async ( ) => {
1617+ const testId = 'add-minItems-with-default-value-for-array-property'
1618+ const result = await compareFiles ( suiteId , testId )
1619+ expect ( result ) . toEqual ( [ ] )
1620+ } )
1621+
1622+ test ( 'Remove minItems with default value for array property' , async ( ) => {
1623+ const testId = 'remove-minItems-with-default-value-for-array-property'
1624+ const result = await compareFiles ( suiteId , testId )
1625+ expect ( result ) . toEqual ( [ ] )
1626+ } )
1627+
1628+ test ( 'Add uniqueItems with default value for array property' , async ( ) => {
1629+ const testId = 'add-uniqueItems-with-default-value-for-array-property'
1630+ const result = await compareFiles ( suiteId , testId )
1631+ expect ( result ) . toEqual ( [ ] )
1632+ } )
1633+
1634+ test ( 'Remove uniqueItems with default value for array property' , async ( ) => {
1635+ const testId = 'remove-uniqueItems-with-default-value-for-array-property'
1636+ const result = await compareFiles ( suiteId , testId )
1637+ expect ( result ) . toEqual ( [ ] )
1638+ } )
1639+
1640+ test ( 'Add minProperties with default value for object property' , async ( ) => {
1641+ const testId = 'add-minProperties-with-default-value-for-object-property'
1642+ const result = await compareFiles ( suiteId , testId )
1643+ expect ( result ) . toEqual ( [ ] )
1644+ } )
1645+
1646+ test ( 'Remove minProperties with default value for object property' , async ( ) => {
1647+ const testId = 'remove-minProperties-with-default-value-for-object-property'
1648+ const result = await compareFiles ( suiteId , testId )
1649+ expect ( result ) . toEqual ( [ ] )
1650+ } )
1651+
1652+ test ( 'Add attribute with default value for xml' , async ( ) => {
1653+ const testId = 'add-attribute-with-default-value-for-xml'
1654+ const result = await compareFiles ( suiteId , testId )
1655+ expect ( result ) . toEqual ( [ ] )
1656+ } )
1657+
1658+ test ( 'Remove attribute with default value for xml' , async ( ) => {
1659+ const testId = 'remove-attribute-with-default-value-for-xml'
1660+ const result = await compareFiles ( suiteId , testId )
1661+ expect ( result ) . toEqual ( [ ] )
1662+ } )
1663+
1664+ test ( 'Add xml:wrapped with default value for array property' , async ( ) => {
1665+ const testId = 'add-xml-wrapped-with-default-value-for-array-property'
1666+ const result = await compareFiles ( suiteId , testId )
1667+ expect ( result ) . toEqual ( [ ] )
1668+ } )
1669+
1670+ test ( 'Remove xml:wrapped with default value for array property' , async ( ) => {
1671+ const testId = 'remove-xml-wrapped-with-default-value-for-array-property'
1672+ const result = await compareFiles ( suiteId , testId )
1673+ expect ( result ) . toEqual ( [ ] )
1674+ } )
1675+ } )
1676+ }
0 commit comments