You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AutoLookupControl.Mock.ts
- Simplified Constructor/Property defintion
- Made uiKeyPressableOptional
UiStandardElement.Mock.ts
- Added factory create method to simplify creation.
Attribute.ts
- Reordered the properties of createString. This is a breaking change, but it allows for just being able to specify Attribute.createString("lastname"), rather than being forced to populated all of the parameters. The order of the parameters have been updated to be in the most like order of setting the value. (i.e. many unit tests may be setting a control to visible, or enabling it. Very few will care about the format, and even fewer will be worry about the label or setting the maxLength.
control.ts
- The xrm-mock-generator has exposed an instance of Control, making the static methods impossible to call. Ideally, it makes more sense for the class to be static methods, but the attribute class was setup as an instance, and I elected to leave it. Not sure if it should be changed or not.
Added test for the control being added with a label
XrmMockGenerator.Control.createString generates a compile error since it is an instance, and doesn't expose the static methods
The text was updated successfully, but these errors were encountered: