This repository has been archived by the owner on Apr 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
XrmMockGenerator.initialise is not a function #8
Comments
I'm having a similar issue. Below is my TypeScript file. I'm guessing it has to do with how the module loader I'm using? import * as XrmMockGenerator from "xrm-mock-generator";
describe("Module Xrm-Mock-Generator in node_modules/xrm-mock-generator/src/xrm-mock-generator", () => {
let xrm: Xrm.XrmStatic;
beforeEach(() => {
xrm = XrmMockGenerator.initialize();
XrmMockGenerator.Attribute.createString("firstname", "Joe");
XrmMockGenerator.Attribute.createString("lastname", "D365");
});
it("getValue should return default value", () => {
expect(xrm.Page.getAttribute("firstname").getValue()).toBe("Joe");
expect(xrm.Page.getAttribute("lastname").getValue()).toBe("D365");
});
}); @tsharp did you figure out a solution? |
@daryllabar you've written |
I did catch that (you and the Queen's English...) and finally figured out that v 1.0.6 on npm is invalid. Going back to v1.0.5 worked. Any Idea Why @camelCaseDave |
daryllabar
added a commit
to daryllabar/xrm-mock-generator
that referenced
this issue
Mar 27, 2018
Updated Attribute Builder calls to return the attribute
davidjbclark
added a commit
that referenced
this issue
Mar 27, 2018
Fix for XrmMockGenerator.initialise is not a function #8,
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: