@@ -40,16 +40,16 @@ const objectWithIpa100And101Exception = {
4040describe ( 'tools/spectral/ipa/rulesets/functions/utils/exceptions.js' , ( ) => {
4141 describe ( 'hasException' , ( ) => {
4242 it ( 'returns true if object has exception matching the rule name' , ( ) => {
43- expect ( hasException ( objectWithIpa100Exception , TEST_RULE_NAME_100 , '' ) ) . toBe ( true ) ;
44- expect ( hasException ( objectWithIpa100ExceptionAndOwnerExtension , TEST_RULE_NAME_100 , '' ) ) . toBe ( true ) ;
45- expect ( hasException ( objectWithIpa100And101Exception , TEST_RULE_NAME_100 , '' ) ) . toBe ( true ) ;
43+ expect ( hasException ( objectWithIpa100Exception , TEST_RULE_NAME_100 ) ) . toBe ( true ) ;
44+ expect ( hasException ( objectWithIpa100ExceptionAndOwnerExtension , TEST_RULE_NAME_100 ) ) . toBe ( true ) ;
45+ expect ( hasException ( objectWithIpa100And101Exception , TEST_RULE_NAME_100 ) ) . toBe ( true ) ;
4646 } ) ;
4747 it ( 'returns false if object does not have exception matching the rule name' , ( ) => {
48- expect ( hasException ( { } , TEST_RULE_NAME_100 , '' ) ) . toBe ( false ) ;
49- expect ( hasException ( objectWithIpa101Exception , TEST_RULE_NAME_100 , '' ) ) . toBe ( false ) ;
48+ expect ( hasException ( { } , TEST_RULE_NAME_100 ) ) . toBe ( false ) ;
49+ expect ( hasException ( objectWithIpa101Exception , TEST_RULE_NAME_100 ) ) . toBe ( false ) ;
5050 } ) ;
5151 it ( 'returns false if object has nested exception matching the rule name' , ( ) => {
52- expect ( hasException ( objectWithNestedIpa100Exception , TEST_RULE_NAME_100 , '' ) ) . toBe ( false ) ;
52+ expect ( hasException ( objectWithNestedIpa100Exception , TEST_RULE_NAME_100 ) ) . toBe ( false ) ;
5353 } ) ;
5454 } ) ;
5555} ) ;
0 commit comments