merchi_sdk_ts 1.0.1 → 1.0.2-a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/entities/user.js
CHANGED
|
@@ -67,7 +67,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
67
67
|
__extends(User, _super);
|
|
68
68
|
function User() {
|
|
69
69
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
70
|
-
|
|
70
|
+
// public publicCreate = this.createFactory(
|
|
71
|
+
// {resourceName: 'public_user_create'});
|
|
71
72
|
_this.roleInDomain = function (domain) {
|
|
72
73
|
if (_this.enrolledDomains === undefined) {
|
|
73
74
|
var err = 'enrolledDomains is undefined, did you forget to embed it?';
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
user.name = 'Test User';
|
|
28
28
|
var data = Array.from(user.toFormData().entries());
|
|
29
29
|
var fetch = (0, test_util_1.mockFetch)(true, {}, 201);
|
|
30
|
-
user.publicCreate();
|
|
30
|
+
// user.publicCreate();
|
|
31
31
|
var fetchUrl = fetch.mock.calls[0][0];
|
|
32
32
|
var sentToServer = Array.from(fetch.mock.calls[0][1]['body'].entries());
|
|
33
33
|
expect(sentToServer).toEqual(data);
|