Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
XrmMockGenerator.prototype.initialise = function () {
var Xrm = new XrmMock.XrmStaticMock({
page: new XrmMock.PageMock({
context: new XrmMock.ContextMock({
userRoles: []
}),
data: new XrmMock.DataMock(
new XrmMock.EntityMock(
"{00000000-0000-0000-0000-000000000000}",
new XrmMock.ItemCollectionMock([]))),
ui: Ui.createUi()
})
});
return global.Xrm = Xrm;
};