Bona Iqiniso Application Board

V3BiAlertValidationBase

Specification for V3BiAlertValidationBase

ScenarioGivenWhenThen
Create an instance with alertReference onlyThe alertReference is 'alert1'I create a new V3BiAlertValidationBase with alertReferenceThe instance should have alertReference as 'alert1' and field as undefined
Create an instance with both alertReference and fieldThe alertReference is 'alert1' and the field is 'field1'I create a new V3BiAlertValidationBase with alertReference and fieldThe instance should have alertReference as 'alert1' and field as 'field1'
Handle empty string as fieldThe alertReference is 'alert1' and the field is ''I create a new V3BiAlertValidationBase with alertReference and an empty fieldThe instance should have alertReference as 'alert1' and field as undefined
Handle undefined as fieldThe alertReference is 'alert1' and the field is undefinedI create a new V3BiAlertValidationBase with alertReference and undefined fieldThe instance should have alertReference as 'alert1' and field as undefined
Handle special characters in fieldThe alertReference is 'alert1' and the field is '!@#field$%^'I create a new V3BiAlertValidationBase with alertReference and field with special charactersThe instance should have alertReference as 'alert1' and field as '!@#field$%^'

Example Usage

const alertValidation = new V3BiAlertValidationBase('alert1', 'field1');