@truedat/lm 7.0.8 → 7.1.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/lm",
3
- "version": "7.0.8",
3
+ "version": "7.1.0",
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.0.8",
37
+ "@truedat/test": "7.1.0",
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.0.8",
89
+ "@truedat/core": "7.1.0",
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": "ff536a41caac4df0cfa13df66dc2805b3bb7637a"
110
+ "gitHead": "cb08380da04c7286e694540bc24d32f01a728dfc"
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: /expandable/,
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 />", () => {
@@ -35,7 +35,7 @@ exports[`<RelationTagCards /> matches the latest snapshot 1`] = `
35
35
  value=""
36
36
  />
37
37
  <label>
38
- relationTags.props.expandable
38
+ Expandable
39
39
  </label>
40
40
  </div>
41
41
  </div>
@@ -63,7 +63,7 @@ exports[`<RelationTags /> matches the latest snapshot 1`] = `
63
63
  value=""
64
64
  />
65
65
  <label>
66
- relationTags.props.expandable
66
+ Expandable
67
67
  </label>
68
68
  </div>
69
69
  </div>