@reltio/components 1.4.1880 → 1.4.1881

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.
@@ -131,7 +131,7 @@ describe('DateEditor behaviour', function () {
131
131
  return __generator(this, function (_a) {
132
132
  switch (_a.label) {
133
133
  case 0:
134
- props = __assign(__assign({}, defaultProps), { minDate: new Date('1800-01-01'), maxDate: new Date('2200-12-31') });
134
+ props = __assign(__assign({}, defaultProps), { minDate: new Date(1800, 0, 1, 0, 0, 0, 0), maxDate: new Date(2200, 11, 31, 0, 0, 0, 0) });
135
135
  user = setUp({ props: props }).user;
136
136
  return [4 /*yield*/, user.type(react_2.screen.getByRole('textbox'), '01/01/1800')];
137
137
  case 1:
@@ -92,7 +92,8 @@ describe('filters helpers tests', function () {
92
92
  expect((0, filters_1.buildHistoryFilterString)(filter)).toEqual(expectedResult + ' and ' + defaultFilterString);
93
93
  });
94
94
  it('should build date range within filter correctly', function () {
95
- jest.spyOn(Date, 'now').mockReturnValue(1636703406900);
95
+ var tzOffset = new Date().getTimezoneOffset() * 60000;
96
+ jest.spyOn(Date, 'now').mockReturnValue(1636703406900 - tzOffset);
96
97
  var filter = {
97
98
  dateRange: {
98
99
  type: 'within',
@@ -102,7 +103,8 @@ describe('filters helpers tests', function () {
102
103
  expect((0, filters_1.buildHistoryFilterString)(filter)).toEqual('(gte(timestamp, 1626076206900)) and ' + defaultFilterString);
103
104
  });
104
105
  it('should build date range ago filter correctly', function () {
105
- jest.spyOn(Date, 'now').mockReturnValue(1636703406900);
106
+ var tzOffset = new Date().getTimezoneOffset() * 60000;
107
+ jest.spyOn(Date, 'now').mockReturnValue(1636703406900 - tzOffset);
106
108
  var filter = {
107
109
  dateRange: {
108
110
  type: 'ago',
@@ -126,7 +126,7 @@ describe('DateEditor behaviour', function () {
126
126
  return __generator(this, function (_a) {
127
127
  switch (_a.label) {
128
128
  case 0:
129
- props = __assign(__assign({}, defaultProps), { minDate: new Date('1800-01-01'), maxDate: new Date('2200-12-31') });
129
+ props = __assign(__assign({}, defaultProps), { minDate: new Date(1800, 0, 1, 0, 0, 0, 0), maxDate: new Date(2200, 11, 31, 0, 0, 0, 0) });
130
130
  user = setUp({ props: props }).user;
131
131
  return [4 /*yield*/, user.type(screen.getByRole('textbox'), '01/01/1800')];
132
132
  case 1:
@@ -87,7 +87,8 @@ describe('filters helpers tests', function () {
87
87
  expect(buildHistoryFilterString(filter)).toEqual(expectedResult + ' and ' + defaultFilterString);
88
88
  });
89
89
  it('should build date range within filter correctly', function () {
90
- jest.spyOn(Date, 'now').mockReturnValue(1636703406900);
90
+ var tzOffset = new Date().getTimezoneOffset() * 60000;
91
+ jest.spyOn(Date, 'now').mockReturnValue(1636703406900 - tzOffset);
91
92
  var filter = {
92
93
  dateRange: {
93
94
  type: 'within',
@@ -97,7 +98,8 @@ describe('filters helpers tests', function () {
97
98
  expect(buildHistoryFilterString(filter)).toEqual('(gte(timestamp, 1626076206900)) and ' + defaultFilterString);
98
99
  });
99
100
  it('should build date range ago filter correctly', function () {
100
- jest.spyOn(Date, 'now').mockReturnValue(1636703406900);
101
+ var tzOffset = new Date().getTimezoneOffset() * 60000;
102
+ jest.spyOn(Date, 'now').mockReturnValue(1636703406900 - tzOffset);
101
103
  var filter = {
102
104
  dateRange: {
103
105
  type: 'ago',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.1880",
3
+ "version": "1.4.1881",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
@@ -8,7 +8,7 @@
8
8
  "@fluentui/react-context-selector": "^9.1.26",
9
9
  "@react-google-maps/api": "2.7.0",
10
10
  "@react-sigma/core": "3.4.0",
11
- "@reltio/mdm-sdk": "^1.4.1816",
11
+ "@reltio/mdm-sdk": "^1.4.1817",
12
12
  "classnames": "^2.2.5",
13
13
  "d3-cloud": "^1.2.5",
14
14
  "d3-geo": "^2.0.1",