refactor(28015): refactor mapping editor #2546
Annotations
4 errors
🧪 Run Test:
hivemq-edge/src/frontend/src/modules/Mappings/hooks/useTagManager.spec.tsx#L82
AssertionError: expected { context: { …(3) }, …(9) } to strictly equal ObjectContaining{…}
- Expected
+ Received
- ObjectContaining {
+ Object {
"context": Object {
- "formData": undefined,
+ "formData": Object {
+ "items": Array [],
+ },
"schema": undefined,
- "uiSchema": Object {},
+ "uiSchema": Object {
+ "items": Object {
+ "items": Object {
+ "ui:collapsable": Object {
+ "titleKey": "name",
},
- "data": undefined,
- "error": "The protocol adapter for this device cannot be found",
+ "ui:order": Array [
+ "name",
+ "description",
+ "*",
+ ],
+ },
+ },
+ "ui:submitButtonOptions": Object {
+ "norender": true,
+ },
+ },
+ },
+ "data": Object {
+ "items": Array [],
+ },
+ "error": "Internal Server Error",
"isError": true,
"isLoading": false,
"isPending": false,
+ "onCreate": [Function onCreate],
+ "onDelete": [Function onDelete],
+ "onUpdate": [Function onUpdate],
+ "onupdateCollection": [Function onupdateCollection],
}
❯ src/modules/Mappings/hooks/useTagManager.spec.tsx:82:28
|
🧪 Run Test:
hivemq-edge/src/frontend/src/modules/Mappings/hooks/useTagManager.spec.tsx#L105
AssertionError: expected { context: { …(3) }, …(9) } to strictly equal ObjectContaining{…}
- Expected
+ Received
- ObjectContaining {
+ Object {
"context": Object {
- "formData": undefined,
+ "formData": Object {
+ "items": Array [],
+ },
"schema": undefined,
- "uiSchema": Object {},
+ "uiSchema": Object {
+ "items": Object {
+ "items": Object {
+ "ui:collapsable": Object {
+ "titleKey": "name",
},
- "data": undefined,
- "error": "The form cannot be created, due to internal errors",
+ "ui:order": Array [
+ "name",
+ "description",
+ "*",
+ ],
+ },
+ },
+ "ui:submitButtonOptions": Object {
+ "norender": true,
+ },
+ },
+ },
+ "data": Object {
+ "items": Array [],
+ },
+ "error": "Internal Server Error",
"isError": true,
"isLoading": false,
"isPending": false,
+ "onCreate": [Function onCreate],
+ "onDelete": [Function onDelete],
+ "onUpdate": [Function onUpdate],
+ "onupdateCollection": [Function onupdateCollection],
}
❯ src/modules/Mappings/hooks/useTagManager.spec.tsx:105:28
|
🧪 Run Test:
hivemq-edge/src/frontend/src/modules/Mappings/hooks/useTagManager.spec.tsx#L130
AssertionError: expected { context: { …(3) }, …(9) } to strictly equal ObjectContaining{…}
- Expected
+ Received
- ObjectContaining {
+ Object {
"context": Object {
"formData": Object {
"items": Array [],
},
- "schema": ObjectContaining {
- "definitions": ObjectContaining {
- "DeviceDataPoint": ObjectContaining {
- "properties": ObjectContaining {
- "node": ObjectContaining {
- "title": "Source Node ID",
+ "schema": undefined,
+ "uiSchema": Object {
+ "items": Object {
+ "items": Object {
+ "ui:collapsable": Object {
+ "titleKey": "name",
},
+ "ui:order": Array [
+ "name",
+ "description",
+ "*",
+ ],
},
},
- "DomainTag": ObjectContaining {},
+ "ui:submitButtonOptions": Object {
+ "norender": true,
},
},
- "uiSchema": Object {},
},
"data": Object {
"items": Array [],
},
- "error": null,
+ "error": undefined,
"isError": false,
"isLoading": false,
"isPending": false,
+ "onCreate": [Function onCreate],
+ "onDelete": [Function onDelete],
+ "onUpdate": [Function onUpdate],
+ "onupdateCollection": [Function onupdateCollection],
}
❯ src/modules/Mappings/hooks/useTagManager.spec.tsx:130:28
|
🧪 Run Test
Process completed with exit code 1.
|
Loading