@truedat/lm 7.0.8 → 7.1.1
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/package.json +4 -4
- package/src/components/__tests__/RelationTagCards.spec.js +11 -1
- package/src/components/__tests__/RelationTagForm.spec.js +2 -1
- package/src/components/__tests__/RelationTags.spec.js +10 -0
- package/src/components/__tests__/__snapshots__/RelationTagCards.spec.js.snap +1 -1
- package/src/components/__tests__/__snapshots__/RelationTags.spec.js.snap +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/lm",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"description": "Truedat Link Manager",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@testing-library/jest-dom": "^5.16.5",
|
|
35
35
|
"@testing-library/react": "^12.0.0",
|
|
36
36
|
"@testing-library/user-event": "^13.2.1",
|
|
37
|
-
"@truedat/test": "7.
|
|
37
|
+
"@truedat/test": "7.1.1",
|
|
38
38
|
"babel-jest": "^28.1.0",
|
|
39
39
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
40
40
|
"babel-plugin-lodash": "^3.3.4",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@truedat/core": "7.
|
|
89
|
+
"@truedat/core": "7.1.1",
|
|
90
90
|
"path-to-regexp": "^1.7.0",
|
|
91
91
|
"prop-types": "^15.8.1",
|
|
92
92
|
"react-graph-vis": "1.0.6",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"react-dom": ">= 16.8.6 < 17",
|
|
108
108
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "f7aef0d8ae70d610b20a38b77589c9e614ae5fbd"
|
|
111
111
|
}
|
|
@@ -2,6 +2,16 @@ import React from "react";
|
|
|
2
2
|
import { render } from "@truedat/test/render";
|
|
3
3
|
import { RelationTagCards } from "../RelationTagCards";
|
|
4
4
|
|
|
5
|
+
const messages = {
|
|
6
|
+
en: {
|
|
7
|
+
"relationTags.props.expandable": "Expandable",
|
|
8
|
+
"relationTags.subheader": "In this section you can manage Relation Types",
|
|
9
|
+
"relationTags.header": "Relation Types",
|
|
10
|
+
"relationTags.actions.create": "Create Relation Type",
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const renderOpts = { messages };
|
|
5
15
|
describe("<RelationTagCards />", () => {
|
|
6
16
|
it("matches the latest snapshot", () => {
|
|
7
17
|
const relationTags = [
|
|
@@ -11,7 +21,7 @@ describe("<RelationTagCards />", () => {
|
|
|
11
21
|
];
|
|
12
22
|
const props = { relationTags };
|
|
13
23
|
|
|
14
|
-
const { container } = render(<RelationTagCards {...props}
|
|
24
|
+
const { container } = render(<RelationTagCards {...props} />, renderOpts);
|
|
15
25
|
expect(container).toMatchSnapshot();
|
|
16
26
|
});
|
|
17
27
|
});
|
|
@@ -10,6 +10,7 @@ const renderOpts = {
|
|
|
10
10
|
"actions.cancel": "cancel",
|
|
11
11
|
"actions.create": "create",
|
|
12
12
|
"form.validation.required": "required",
|
|
13
|
+
"relationTags.props.expandable": "Expandable",
|
|
13
14
|
"relationTags.props.target_type": "target",
|
|
14
15
|
"relationTags.props.target_type.placeholder": "...",
|
|
15
16
|
"relationTags.props.type": "type",
|
|
@@ -51,7 +52,7 @@ describe("<RelationTagForm />", () => {
|
|
|
51
52
|
|
|
52
53
|
//expandable
|
|
53
54
|
const expandableCheckbox = await findByRole("checkbox", {
|
|
54
|
-
name: /
|
|
55
|
+
name: /Expandable/,
|
|
55
56
|
});
|
|
56
57
|
userEvent.click(expandableCheckbox);
|
|
57
58
|
|
|
@@ -8,8 +8,18 @@ const relationTags = [
|
|
|
8
8
|
{ id: 3, value: { type: "tag3", target_type: "ingest" } },
|
|
9
9
|
];
|
|
10
10
|
|
|
11
|
+
const messages = {
|
|
12
|
+
en: {
|
|
13
|
+
"relationTags.props.expandable": "Expandable",
|
|
14
|
+
"relationTags.subheader": "In this section you can manage Relation Types",
|
|
15
|
+
"relationTags.header": "Relation Types",
|
|
16
|
+
"relationTags.actions.create": "Create Relation Type",
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
11
20
|
const renderOpts = {
|
|
12
21
|
state: { relationTags },
|
|
22
|
+
messages,
|
|
13
23
|
};
|
|
14
24
|
|
|
15
25
|
describe("<RelationTags />", () => {
|