@truedat/dd 4.47.5 → 4.47.6

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/dd",
3
- "version": "4.47.5",
3
+ "version": "4.47.6",
4
4
  "description": "Truedat Web Data Dictionary",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -34,7 +34,7 @@
34
34
  "@testing-library/jest-dom": "^5.16.4",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "4.47.5",
37
+ "@truedat/test": "4.47.6",
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",
@@ -88,9 +88,9 @@
88
88
  },
89
89
  "dependencies": {
90
90
  "@apollo/client": "^3.6.4",
91
- "@truedat/auth": "4.47.5",
92
- "@truedat/core": "4.47.5",
93
- "@truedat/df": "4.47.5",
91
+ "@truedat/auth": "4.47.6",
92
+ "@truedat/core": "4.47.6",
93
+ "@truedat/df": "4.47.6",
94
94
  "lodash": "^4.17.21",
95
95
  "path-to-regexp": "^1.7.0",
96
96
  "prop-types": "^15.8.1",
@@ -112,5 +112,5 @@
112
112
  "react-dom": ">= 16.8.6 < 17",
113
113
  "semantic-ui-react": ">= 0.88.2 < 2.1"
114
114
  },
115
- "gitHead": "1265272aa7b8fcb415592916f0e557ae226befe3"
115
+ "gitHead": "07210600d97244d32085d7166595ee030e6bb578"
116
116
  }
@@ -9,6 +9,9 @@ import {
9
9
  jest.mock("@truedat/core/hooks", () => ({
10
10
  useAuthorized: jest.fn(() => true),
11
11
  }));
12
+ jest
13
+ .spyOn(global.Date, "now")
14
+ .mockImplementation(() => new Date("2022-01-01T11:01:58.135Z").valueOf());
12
15
 
13
16
  const dataset = {
14
17
  __typename: "ReferenceDataset",
@@ -23,6 +23,10 @@ const datasetsMock = {
23
23
 
24
24
  const renderOpts = { mocks: [datasetsMock] };
25
25
 
26
+ jest
27
+ .spyOn(global.Date, "now")
28
+ .mockImplementation(() => new Date("2022-01-01T11:01:58.135Z").valueOf());
29
+
26
30
  describe("<ReferenceDatasets />", () => {
27
31
  it("matches the latest snapshot", async () => {
28
32
  const { container, findByText } = render(<ReferenceDatasets />, renderOpts);
@@ -2,6 +2,10 @@ import React from "react";
2
2
  import { render } from "@truedat/test/render";
3
3
  import ReferenceDatasetsTable from "../ReferenceDatasetsTable";
4
4
 
5
+ jest
6
+ .spyOn(global.Date, "now")
7
+ .mockImplementation(() => new Date("2022-01-01T11:01:58.135Z").valueOf());
8
+
5
9
  const props = {
6
10
  datasets: [
7
11
  {