Specification for V3BiAlertValidationBase
| Scenario | Given | When | Then |
|---|
Create an instance with alertReference only | The alertReference is 'alert1' | I create a new V3BiAlertValidationBase with alertReference | The instance should have alertReference as 'alert1' and field as undefined |
Create an instance with both alertReference and field | The alertReference is 'alert1' and the field is 'field1' | I create a new V3BiAlertValidationBase with alertReference and field | The instance should have alertReference as 'alert1' and field as 'field1' |
Handle empty string as field | The alertReference is 'alert1' and the field is '' | I create a new V3BiAlertValidationBase with alertReference and an empty field | The instance should have alertReference as 'alert1' and field as undefined |
Handle undefined as field | The alertReference is 'alert1' and the field is undefined | I create a new V3BiAlertValidationBase with alertReference and undefined field | The instance should have alertReference as 'alert1' and field as undefined |
Handle special characters in field | The alertReference is 'alert1' and the field is '!@#field$%^' | I create a new V3BiAlertValidationBase with alertReference and field with special characters | The instance should have alertReference as 'alert1' and field as '!@#field$%^' |
Example Usage
const alertValidation = new V3BiAlertValidationBase('alert1', 'field1');