@reltio/components 1.4.2319 → 1.4.2320

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.
@@ -1246,6 +1246,17 @@ describe('useAPI custom sandbox behavior', function () {
1246
1246
  expect(interceptors.startInterceptorInit).toHaveBeenCalledTimes(1);
1247
1247
  expect(interceptors.finishInterceptorInit).toHaveBeenCalledTimes(1);
1248
1248
  });
1249
+ it('should remove interceptors when custom script worker fails', function () {
1250
+ var mdmValues = __assign(__assign({}, defaultMdmValues), { servicesPath: 'https://tst-01.reltio.com/nui/services' });
1251
+ var config = (0, config_test_data_1.createConfig)({ processApiRequest: [], processApiResponse: [] });
1252
+ setUp({ mdmValues: mdmValues, config: config });
1253
+ expect(interceptors.removeInternalRequestInterceptor).not.toHaveBeenCalled();
1254
+ (0, react_2.act)(function () {
1255
+ worker.onerror(new ErrorEvent('error', { message: 'Uncaught NetworkError' }));
1256
+ });
1257
+ expect(interceptors.removeInternalRequestInterceptor).toHaveBeenCalledTimes(1);
1258
+ expect(interceptors.removeInternalResponseInterceptor).toHaveBeenCalledTimes(1);
1259
+ });
1249
1260
  it('should not start Process Instance on action request and name workflow/startProcessInstance if processDefinitionId is empty', function () { return __awaiter(void 0, void 0, void 0, function () {
1250
1261
  var result, params;
1251
1262
  return __generator(this, function (_a) {
@@ -1221,6 +1221,17 @@ describe('useAPI custom sandbox behavior', function () {
1221
1221
  expect(interceptors.startInterceptorInit).toHaveBeenCalledTimes(1);
1222
1222
  expect(interceptors.finishInterceptorInit).toHaveBeenCalledTimes(1);
1223
1223
  });
1224
+ it('should remove interceptors when custom script worker fails', function () {
1225
+ var mdmValues = __assign(__assign({}, defaultMdmValues), { servicesPath: 'https://tst-01.reltio.com/nui/services' });
1226
+ var config = createConfig({ processApiRequest: [], processApiResponse: [] });
1227
+ setUp({ mdmValues: mdmValues, config: config });
1228
+ expect(interceptors.removeInternalRequestInterceptor).not.toHaveBeenCalled();
1229
+ act(function () {
1230
+ worker.onerror(new ErrorEvent('error', { message: 'Uncaught NetworkError' }));
1231
+ });
1232
+ expect(interceptors.removeInternalRequestInterceptor).toHaveBeenCalledTimes(1);
1233
+ expect(interceptors.removeInternalResponseInterceptor).toHaveBeenCalledTimes(1);
1234
+ });
1224
1235
  it('should not start Process Instance on action request and name workflow/startProcessInstance if processDefinitionId is empty', function () { return __awaiter(void 0, void 0, void 0, function () {
1225
1236
  var result, params;
1226
1237
  return __generator(this, function (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.2319",
3
+ "version": "1.4.2320",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./index.js",
@@ -11,7 +11,7 @@
11
11
  "@fluentui/react-context-selector": "^9.1.26",
12
12
  "@googlemaps/markerclusterer": "^2.5.3",
13
13
  "@react-sigma/core": "3.4.0",
14
- "@reltio/mdm-sdk": "^1.4.2076",
14
+ "@reltio/mdm-sdk": "^1.4.2077",
15
15
  "@vis.gl/react-google-maps": "^1.3.0",
16
16
  "d3-cloud": "^1.2.5",
17
17
  "d3-geo": "^2.0.1",