@truedat/core 8.3.1 → 8.3.2
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/core",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.2",
|
|
4
4
|
"description": "Truedat Web Core",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@testing-library/jest-dom": "^6.6.3",
|
|
49
49
|
"@testing-library/react": "^16.3.0",
|
|
50
50
|
"@testing-library/user-event": "^14.6.1",
|
|
51
|
-
"@truedat/test": "8.3.
|
|
51
|
+
"@truedat/test": "8.3.2",
|
|
52
52
|
"identity-obj-proxy": "^3.0.0",
|
|
53
53
|
"jest": "^29.7.0",
|
|
54
54
|
"redux-saga-test-plan": "^4.0.6"
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"slate-react": "^0.22.10",
|
|
86
86
|
"swr": "^2.3.3"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "ed0c289882710d6df3483692fab5833747130cbf"
|
|
89
89
|
}
|
|
@@ -306,7 +306,11 @@ const InfoDetail = ({ response }) =>
|
|
|
306
306
|
!response || !response.type ? null : (
|
|
307
307
|
<div>
|
|
308
308
|
<CellHeader
|
|
309
|
-
header={
|
|
309
|
+
header={
|
|
310
|
+
response.type === "unchanged" && response.details?.is_deprecated
|
|
311
|
+
? "uploadJob.parser.info.deprecated_implementation"
|
|
312
|
+
: `uploadJob.parser.info.${response.type}`
|
|
313
|
+
}
|
|
310
314
|
response={response}
|
|
311
315
|
/>
|
|
312
316
|
{response.details ? (
|
|
@@ -88,6 +88,18 @@ describe("<ResponseCell />", () => {
|
|
|
88
88
|
).toBeInTheDocument();
|
|
89
89
|
});
|
|
90
90
|
|
|
91
|
+
it("renders INFO status with deprecated_implementation specifically when unchanged and deprecated", () => {
|
|
92
|
+
const response = {
|
|
93
|
+
type: "unchanged",
|
|
94
|
+
details: {
|
|
95
|
+
id: 123,
|
|
96
|
+
is_deprecated: true,
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
const rendered = render(<ResponseCell response={response} status="INFO" />);
|
|
100
|
+
expect(rendered.getByText(/uploadJob.parser.info.deprecated_implementation/i)).toBeInTheDocument();
|
|
101
|
+
});
|
|
102
|
+
|
|
91
103
|
it("renders default case for unknown status", () => {
|
|
92
104
|
const response = "some text";
|
|
93
105
|
const rendered = render(
|