@truedat/dd 6.13.1 → 6.13.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 +5 -5
- package/src/components/Task.js +0 -1
- package/src/components/__tests__/Tasks.spec.js +1 -1
- package/src/components/__tests__/TasksRoutes.spec.js +3 -2
- package/src/components/__tests__/__snapshots__/DictionaryRoutes.spec.js.snap +1 -1
- package/src/components/__tests__/__snapshots__/Task.spec.js.snap +1 -1
- package/src/components/__tests__/__snapshots__/TasksRoutes.spec.js.snap +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dd",
|
|
3
|
-
"version": "6.13.
|
|
3
|
+
"version": "6.13.2",
|
|
4
4
|
"description": "Truedat Web Data Dictionary",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -88,9 +88,9 @@
|
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@apollo/client": "^3.7.1",
|
|
91
|
-
"@truedat/auth": "6.13.
|
|
92
|
-
"@truedat/core": "6.13.
|
|
93
|
-
"@truedat/df": "6.13.
|
|
91
|
+
"@truedat/auth": "6.13.2",
|
|
92
|
+
"@truedat/core": "6.13.2",
|
|
93
|
+
"@truedat/df": "6.13.2",
|
|
94
94
|
"lodash": "^4.17.21",
|
|
95
95
|
"moment": "^2.29.4",
|
|
96
96
|
"path-to-regexp": "^1.7.0",
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"react-dom": ">= 16.8.6 < 17",
|
|
116
116
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "679f512be94669465bd6cb445fc61aa39e903508"
|
|
119
119
|
}
|
package/src/components/Task.js
CHANGED
|
@@ -115,6 +115,6 @@ describe("<Tasks />", () => {
|
|
|
115
115
|
await findByText("processing");
|
|
116
116
|
|
|
117
117
|
userEvent.click(await findByText(/processing/i));
|
|
118
|
-
expect(mockHistory.push.mock.calls[0][0]).toBe("/
|
|
118
|
+
expect(mockHistory.push.mock.calls[0][0]).toBe("/reindex/123");
|
|
119
119
|
});
|
|
120
120
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { render } from "@truedat/test/render";
|
|
3
|
+
import { waitFor } from "@testing-library/react";
|
|
3
4
|
import TasksRoutes from "../TasksRoutes";
|
|
4
5
|
import { TASK_QUERY, TASKS_QUERY } from "../../api/queries";
|
|
5
6
|
import en from "../../messages/en";
|
|
@@ -35,7 +36,7 @@ describe("<TasksRoutes />", () => {
|
|
|
35
36
|
it("matches the latest snapshot (list route)", async () => {
|
|
36
37
|
const renderOpts = {
|
|
37
38
|
messages: { en },
|
|
38
|
-
routes: ["/
|
|
39
|
+
routes: ["/reindex"],
|
|
39
40
|
mocks: [tasksMock],
|
|
40
41
|
};
|
|
41
42
|
const { container, findByText } = render(<TasksRoutes />, renderOpts);
|
|
@@ -46,7 +47,7 @@ describe("<TasksRoutes />", () => {
|
|
|
46
47
|
it("matches the latest snapshot (view route)", async () => {
|
|
47
48
|
const renderOpts = {
|
|
48
49
|
messages: { en },
|
|
49
|
-
routes: ["/
|
|
50
|
+
routes: ["/reindex/123"],
|
|
50
51
|
mocks: [taskMock],
|
|
51
52
|
};
|
|
52
53
|
const { container, findByText } = render(<TasksRoutes />, renderOpts);
|