@futdevpro/fsm-dynamo 1.10.36 → 1.10.37

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.
Files changed (138) hide show
  1. package/build/_collections/utils/array.util.spec.js +34 -34
  2. package/build/_collections/utils/array.util.spec.js.map +1 -1
  3. package/build/_collections/utils/log.util.spec.js +12 -12
  4. package/build/_collections/utils/log.util.spec.js.map +1 -1
  5. package/build/_collections/utils/math/box-bounds.spec.js +11 -11
  6. package/build/_collections/utils/math/box-bounds.spec.js.map +1 -1
  7. package/build/_collections/utils/math/box-bounds.util.spec.js +8 -8
  8. package/build/_collections/utils/math/box-bounds.util.spec.js.map +1 -1
  9. package/build/_collections/utils/math/math.util.spec.js +24 -24
  10. package/build/_collections/utils/math/math.util.spec.js.map +1 -1
  11. package/build/_collections/utils/math/random.util.spec.js +13 -13
  12. package/build/_collections/utils/math/random.util.spec.js.map +1 -1
  13. package/build/_collections/utils/math/trigonometry.util.spec.js +13 -13
  14. package/build/_collections/utils/math/trigonometry.util.spec.js.map +1 -1
  15. package/build/_collections/utils/math/vector2.util.spec.js +14 -14
  16. package/build/_collections/utils/math/vector2.util.spec.js.map +1 -1
  17. package/build/_collections/utils/regex/password-regex.util.spec.js +8 -8
  18. package/build/_collections/utils/regex/password-regex.util.spec.js.map +1 -1
  19. package/build/_collections/utils/regex/regex.util.spec.js +2 -2
  20. package/build/_collections/utils/regex/regex.util.spec.js.map +1 -1
  21. package/build/_collections/utils/regex/username-regex.util.spec.js +3 -3
  22. package/build/_collections/utils/regex/username-regex.util.spec.js.map +1 -1
  23. package/build/_collections/utils/round-list.util.spec.js +20 -20
  24. package/build/_collections/utils/round-list.util.spec.js.map +1 -1
  25. package/build/_collections/utils/shared.util.spec.js +15 -15
  26. package/build/_collections/utils/shared.util.spec.js.map +1 -1
  27. package/build/_collections/utils/string.util.spec.js +9 -9
  28. package/build/_collections/utils/string.util.spec.js.map +1 -1
  29. package/build/_collections/utils/time.util.spec.js +1 -1
  30. package/build/_collections/utils/time.util.spec.js.map +1 -1
  31. package/build/_collections/utils/type-cloning-facility.util.spec.js +5 -5
  32. package/build/_collections/utils/type-cloning-facility.util.spec.js.map +1 -1
  33. package/build/_collections/utils/utilities.util.spec.js +35 -35
  34. package/build/_collections/utils/utilities.util.spec.js.map +1 -1
  35. package/build/_collections/utils/uuid.util.spec.js +6 -6
  36. package/build/_collections/utils/uuid.util.spec.js.map +1 -1
  37. package/build/_models/control-models/data-model-params.control-model.spec.js +6 -6
  38. package/build/_models/control-models/data-model-params.control-model.spec.js.map +1 -1
  39. package/build/_models/control-models/data-property-params.control-model.spec.js +2 -2
  40. package/build/_models/control-models/data-property-params.control-model.spec.js.map +1 -1
  41. package/build/_models/control-models/error.control-model.spec.js +157 -157
  42. package/build/_models/control-models/error.control-model.spec.js.map +1 -1
  43. package/build/_models/control-models/poll.control-model.spec.js +2 -2
  44. package/build/_models/control-models/poll.control-model.spec.js.map +1 -1
  45. package/build/_models/control-models/range-value.control-model.spec.js +27 -27
  46. package/build/_models/control-models/range-value.control-model.spec.js.map +1 -1
  47. package/build/_modules/crypto/_collections/crypto.util.spec.js +31 -31
  48. package/build/_modules/crypto/_collections/crypto.util.spec.js.map +1 -1
  49. package/build/_modules/custom-data/_models/cud.data-model.spec.js +7 -7
  50. package/build/_modules/custom-data/_models/cud.data-model.spec.js.map +1 -1
  51. package/build/_modules/location/_collections/loc-regions.util.spec.js +10 -10
  52. package/build/_modules/location/_collections/loc-regions.util.spec.js.map +1 -1
  53. package/build/_modules/location/_collections/loc.util.spec.js +6 -6
  54. package/build/_modules/location/_collections/loc.util.spec.js.map +1 -1
  55. package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.spec.js +6 -6
  56. package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.spec.js.map +1 -1
  57. package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.spec.js +6 -6
  58. package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.spec.js.map +1 -1
  59. package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.spec.js +6 -6
  60. package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.spec.js.map +1 -1
  61. package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.spec.js +6 -6
  62. package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.spec.js.map +1 -1
  63. package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.spec.js +8 -8
  64. package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.spec.js.map +1 -1
  65. package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.spec.js +5 -5
  66. package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.spec.js.map +1 -1
  67. package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.spec.js +8 -8
  68. package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.spec.js.map +1 -1
  69. package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.spec.js +4 -4
  70. package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.spec.js.map +1 -1
  71. package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.spec.js +9 -9
  72. package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.spec.js.map +1 -1
  73. package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.spec.js +4 -4
  74. package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.spec.js.map +1 -1
  75. package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.spec.js +7 -7
  76. package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.spec.js.map +1 -1
  77. package/build/_modules/socket/_models/sck-client-params.control-model.spec.js +5 -5
  78. package/build/_modules/socket/_models/sck-client-params.control-model.spec.js.map +1 -1
  79. package/build/_modules/socket/_models/sck-socket-event.control-model.spec.js +5 -5
  80. package/build/_modules/socket/_models/sck-socket-event.control-model.spec.js.map +1 -1
  81. package/build/_modules/socket/_services/sck-client.service-base.spec.js +7 -7
  82. package/build/_modules/socket/_services/sck-client.service-base.spec.js.map +1 -1
  83. package/build/_modules/usage/_models/usg-action.control-model.spec.js +4 -4
  84. package/build/_modules/usage/_models/usg-action.control-model.spec.js.map +1 -1
  85. package/build/_modules/usage/_models/usg-daily-usage-data.control-model.spec.js +3 -3
  86. package/build/_modules/usage/_models/usg-daily-usage-data.control-model.spec.js.map +1 -1
  87. package/build/_modules/usage/_models/usg-data.control-model.spec.js +4 -4
  88. package/build/_modules/usage/_models/usg-data.control-model.spec.js.map +1 -1
  89. package/build/_modules/usage/_models/usg-session.data-model.spec.js +7 -7
  90. package/build/_modules/usage/_models/usg-session.data-model.spec.js.map +1 -1
  91. package/futdevpro-fsm-dynamo-01.10.37.tgz +0 -0
  92. package/package.json +1 -1
  93. package/src/_collections/utils/array.util.spec.ts +34 -34
  94. package/src/_collections/utils/log.util.spec.ts +12 -12
  95. package/src/_collections/utils/math/box-bounds.spec.ts +11 -11
  96. package/src/_collections/utils/math/box-bounds.util.spec.ts +8 -8
  97. package/src/_collections/utils/math/math.util.spec.ts +24 -24
  98. package/src/_collections/utils/math/random.util.spec.ts +13 -13
  99. package/src/_collections/utils/math/trigonometry.util.spec.ts +13 -13
  100. package/src/_collections/utils/math/vector2.util.spec.ts +14 -14
  101. package/src/_collections/utils/regex/password-regex.util.spec.ts +8 -8
  102. package/src/_collections/utils/regex/regex.util.spec.ts +2 -2
  103. package/src/_collections/utils/regex/username-regex.util.spec.ts +3 -3
  104. package/src/_collections/utils/round-list.util.spec.ts +20 -20
  105. package/src/_collections/utils/shared.util.spec.ts +15 -15
  106. package/src/_collections/utils/string.util.spec.ts +9 -9
  107. package/src/_collections/utils/time.util.spec.ts +1 -1
  108. package/src/_collections/utils/type-cloning-facility.util.spec.ts +5 -5
  109. package/src/_collections/utils/utilities.util.spec.ts +35 -35
  110. package/src/_collections/utils/uuid.util.spec.ts +6 -6
  111. package/src/_models/control-models/data-model-params.control-model.spec.ts +6 -6
  112. package/src/_models/control-models/data-property-params.control-model.spec.ts +2 -2
  113. package/src/_models/control-models/error.control-model.spec.ts +157 -157
  114. package/src/_models/control-models/poll.control-model.spec.ts +2 -2
  115. package/src/_models/control-models/range-value.control-model.spec.ts +27 -27
  116. package/src/_modules/crypto/_collections/crypto.util.spec.ts +31 -31
  117. package/src/_modules/custom-data/_models/cud.data-model.spec.ts +7 -7
  118. package/src/_modules/location/_collections/loc-regions.util.spec.ts +10 -10
  119. package/src/_modules/location/_collections/loc.util.spec.ts +6 -6
  120. package/src/_modules/pipe/_collections/utils/pip-country-pipe.util.spec.ts +6 -6
  121. package/src/_modules/pipe/_collections/utils/pip-custom-pipe.util.spec.ts +6 -6
  122. package/src/_modules/pipe/_collections/utils/pip-division-pipe.util.spec.ts +6 -6
  123. package/src/_modules/pipe/_collections/utils/pip-list-pipe.util.spec.ts +6 -6
  124. package/src/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.spec.ts +8 -8
  125. package/src/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.spec.ts +5 -5
  126. package/src/_modules/pipe/_collections/utils/pip-range-pipe.util.spec.ts +8 -8
  127. package/src/_modules/pipe/_collections/utils/pip-region-pipe.util.spec.ts +4 -4
  128. package/src/_modules/pipe/_collections/utils/pip-replace-pipe.util.spec.ts +9 -9
  129. package/src/_modules/pipe/_collections/utils/pip-slider-pipe.util.spec.ts +4 -4
  130. package/src/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.spec.ts +7 -7
  131. package/src/_modules/socket/_models/sck-client-params.control-model.spec.ts +5 -5
  132. package/src/_modules/socket/_models/sck-socket-event.control-model.spec.ts +5 -5
  133. package/src/_modules/socket/_services/sck-client.service-base.spec.ts +7 -7
  134. package/src/_modules/usage/_models/usg-action.control-model.spec.ts +4 -4
  135. package/src/_modules/usage/_models/usg-daily-usage-data.control-model.spec.ts +3 -3
  136. package/src/_modules/usage/_models/usg-data.control-model.spec.ts +4 -4
  137. package/src/_modules/usage/_models/usg-session.data-model.spec.ts +7 -7
  138. package/futdevpro-fsm-dynamo-01.10.36.tgz +0 -0
@@ -3,7 +3,7 @@ import { DyFM_division_pipeTransform } from './pip-division-pipe.util';
3
3
  import { DyFM_CountryDivision } from '../../../location/_models/loc-country-division.interface';
4
4
  import { DyFM_countryDivisions } from '../../../location/_collections/loc-country-divisions.const';
5
5
 
6
- describe('DyFM_division_pipeTransform', () => {
6
+ describe('| DyFM_division_pipeTransform', () => {
7
7
  const mockCountryDivisions: DyFM_CountryDivision[] = [
8
8
  { code: 'CA', iso: 'US', name: 'California' },
9
9
  { code: 'TX', iso: 'US', name: 'Texas' },
@@ -14,27 +14,27 @@ describe('DyFM_division_pipeTransform', () => {
14
14
  (DyFM_countryDivisions as DyFM_CountryDivision[]) = mockCountryDivisions;
15
15
  });
16
16
 
17
- it('should return the name of the division when a matching division code and country ISO are found', () => {
17
+ it('| should return the name of the division when a matching division code and country ISO are found', () => {
18
18
  const result = DyFM_division_pipeTransform('CA', 'US');
19
19
  expect(result).toBe('California');
20
20
  });
21
21
 
22
- it('should return the division code when no matching division is found', () => {
22
+ it('| should return the division code when no matching division is found', () => {
23
23
  const result = DyFM_division_pipeTransform('NY', 'US');
24
24
  expect(result).toBe('NY');
25
25
  });
26
26
 
27
- it('should return the division code when the country ISO does not match', () => {
27
+ it('| should return the division code when the country ISO does not match', () => {
28
28
  const result = DyFM_division_pipeTransform('CA', 'CA');
29
29
  expect(result).toBe('CA');
30
30
  });
31
31
 
32
- it('should return the division code when the division code is not found', () => {
32
+ it('| should return the division code when the division code is not found', () => {
33
33
  const result = DyFM_division_pipeTransform('BC', 'CA');
34
34
  expect(result).toBe('BC');
35
35
  });
36
36
 
37
- it('should handle empty division code and country ISO gracefully', () => {
37
+ it('| should handle empty division code and country ISO gracefully', () => {
38
38
  const result = DyFM_division_pipeTransform('', '');
39
39
  expect(result).toBe('');
40
40
  });
@@ -1,32 +1,32 @@
1
1
 
2
2
  import { DyFM_list_pipeTransform } from './pip-list-pipe.util';
3
3
 
4
- describe('DyFM_list_pipeTransform', () => {
5
- it('should transform an array of numbers into a comma-separated string with spaces', () => {
4
+ describe('| DyFM_list_pipeTransform', () => {
5
+ it('| should transform an array of numbers into a comma-separated string with spaces', () => {
6
6
  const input: number[] = [1, 2, 3];
7
7
  const expectedOutput: string = '1, 2, 3';
8
8
  expect(DyFM_list_pipeTransform(input)).toBe(expectedOutput);
9
9
  });
10
10
 
11
- it('should transform an array of strings into a comma-separated string with spaces', () => {
11
+ it('| should transform an array of strings into a comma-separated string with spaces', () => {
12
12
  const input: string[] = ['apple', 'banana', 'cherry'];
13
13
  const expectedOutput: string = 'apple, banana, cherry';
14
14
  expect(DyFM_list_pipeTransform(input)).toBe(expectedOutput);
15
15
  });
16
16
 
17
- it('should return an empty string for an empty array', () => {
17
+ it('| should return an empty string for an empty array', () => {
18
18
  const input: any[] = [];
19
19
  const expectedOutput: string = '';
20
20
  expect(DyFM_list_pipeTransform(input)).toBe(expectedOutput);
21
21
  });
22
22
 
23
- it('should handle an array with a single element correctly', () => {
23
+ it('| should handle an array with a single element correctly', () => {
24
24
  const input: number[] = [42];
25
25
  const expectedOutput: string = '42';
26
26
  expect(DyFM_list_pipeTransform(input)).toBe(expectedOutput);
27
27
  });
28
28
 
29
- it('should handle an array with mixed types correctly', () => {
29
+ it('| should handle an array with mixed types correctly', () => {
30
30
  const input: any[] = [1, 'apple', true];
31
31
  const expectedOutput: string = '1, apple, true';
32
32
  expect(DyFM_list_pipeTransform(input)).toBe(expectedOutput);
@@ -5,33 +5,33 @@ import {
5
5
  import { DyFM_MultiPipe_Setting } from '../../_models/pip-multi-pipe-settings.type';
6
6
  import { DyFM_multiPipe_pipeTransform, DyFM_multiPipeAngularPipes } from './pip-multi-pipe-pipe.util';
7
7
 
8
- describe('DyFM_multiPipe_pipeTransform', () => {
9
- it('should return the original value if no pipes are provided', () => {
8
+ describe('| DyFM_multiPipe_pipeTransform', () => {
9
+ it('| should return the original value if no pipes are provided', () => {
10
10
  const value = 'test';
11
11
  const pipes: DyFM_MultiPipe_Setting[] = [];
12
12
  expect(DyFM_multiPipe_pipeTransform(value, pipes)).toBe(value);
13
13
  });
14
14
 
15
- /* it('should return the original value if pipe has more than one key', () => {
15
+ /* it('| should return the original value if pipe has more than one key', () => {
16
16
  const value = 'test';
17
17
  const pipes: DyFM_MultiPipe_Setting[] = [{ pipe1: [], pipe2: [] }];
18
18
  expect(DyFM_multiPipe_pipeTransform(value, pipes)).toBe(value);
19
19
  });
20
20
 
21
- it('should return the original value if pipe is not available', () => {
21
+ it('| should return the original value if pipe is not available', () => {
22
22
  const value = 'test';
23
23
  const pipes: DyFM_MultiPipe_Setting[] = [{ unknownPipe: [] }];
24
24
  expect(DyFM_multiPipe_pipeTransform(value, pipes)).toBe(value);
25
25
  });
26
26
 
27
- it('should transform value using a known pipe without arguments', () => {
27
+ it('| should transform value using a known pipe without arguments', () => {
28
28
  const value = 'test';
29
29
  const pipes: DyFM_MultiPipe_Setting[] = [{ [DyFM_Pipe.currency]: [] }];
30
30
  DyFM_pipeTransforms[DyFM_Pipe.currency] = (val: unknown) => 'transformed';
31
31
  expect(DyFM_multiPipe_pipeTransform(value, pipes)).toBe('transformed');
32
32
  });
33
33
 
34
- it('should transform value using a known pipe with arguments', () => {
34
+ it('| should transform value using a known pipe with arguments', () => {
35
35
  const value = 'test';
36
36
  const pipes: DyFM_MultiPipe_Setting[] = [{ [DyFM_Pipe.currency]: ['arg1'] }];
37
37
  DyFM_pipeTransforms[DyFM_Pipe.currency] = (val: unknown, arg: string) => `transformed with ${arg}`;
@@ -44,14 +44,14 @@ describe('DyFM_multiPipe_pipeTransform', () => {
44
44
  expect(DyFM_multiPipe_pipeTransform(value, pipes)).toBe(value);
45
45
  });
46
46
 
47
- it('should transform value using a defined Angular pipe', () => {
47
+ it('| should transform value using a defined Angular pipe', () => {
48
48
  const value = 'test';
49
49
  const pipes: DyFM_MultiPipe_Setting[] = [{ [DyFM_AngularMultiPipeAvailable.currency]: ['arg1'] }];
50
50
  DyFM_multiPipeAngularPipes[DyFM_AngularMultiPipeAvailable.currency] = (val: string, arg: string) => `angular transformed with ${arg}`;
51
51
  expect(DyFM_multiPipe_pipeTransform(value, pipes)).toBe('angular transformed with arg1');
52
52
  });
53
53
 
54
- /* it('should handle errors gracefully and return the original value', () => {
54
+ /* it('| should handle errors gracefully and return the original value', () => {
55
55
  const value = 'test';
56
56
  const pipes: DyFM_MultiPipe_Setting[] = [{ [DyFM_Pipe.currency]: [] }];
57
57
  DyFM_pipeTransforms[DyFM_Pipe.currency] = () => { throw new Error('Test error'); };
@@ -1,26 +1,26 @@
1
1
 
2
2
  import { DyFM_objKey_pipeTransform } from './pip-obj-key-pipe.util';
3
3
 
4
- describe('DyFM_objKey_pipeTransform', () => {
5
- it('should return an array of keys when an object is provided', () => {
4
+ describe('| DyFM_objKey_pipeTransform', () => {
5
+ it('| should return an array of keys when an object is provided', () => {
6
6
  const input = { a: 1, b: 2, c: 3 };
7
7
  const expectedOutput = ['a', 'b', 'c'];
8
8
  expect(DyFM_objKey_pipeTransform(input)).toEqual(expectedOutput);
9
9
  });
10
10
 
11
- it('should return an empty array when null is provided', () => {
11
+ it('| should return an empty array when null is provided', () => {
12
12
  const input = null;
13
13
  const expectedOutput: string[] = [];
14
14
  expect(DyFM_objKey_pipeTransform(input)).toEqual(expectedOutput);
15
15
  });
16
16
 
17
- it('should return an empty array when undefined is provided', () => {
17
+ it('| should return an empty array when undefined is provided', () => {
18
18
  const input = undefined;
19
19
  const expectedOutput: string[] = [];
20
20
  expect(DyFM_objKey_pipeTransform(input)).toEqual(expectedOutput);
21
21
  });
22
22
 
23
- it('should return an empty array when an empty object is provided', () => {
23
+ it('| should return an empty array when an empty object is provided', () => {
24
24
  const input = {};
25
25
  const expectedOutput: string[] = [];
26
26
  expect(DyFM_objKey_pipeTransform(input)).toEqual(expectedOutput);
@@ -4,7 +4,7 @@ import { DyFM_RangePipe_Setting } from '../../_enums/pip-range-pipe-setting.enum
4
4
  import { DyFM_MultiPipe_Setting } from '../../_models/pip-multi-pipe-settings.type';
5
5
  import { DyFM_range_pipeTransform } from './pip-range-pipe.util';
6
6
 
7
- describe('DyFM_range_pipeTransform', () => {
7
+ describe('| DyFM_range_pipeTransform', () => {
8
8
  const mockMultiPipeTransform = (value: number, multiPipes: DyFM_MultiPipe_Setting[]) => {
9
9
  return value.toString();
10
10
  };
@@ -13,31 +13,31 @@ describe('DyFM_range_pipeTransform', () => {
13
13
  spyOn(console, 'warn');
14
14
  });
15
15
 
16
- it('should return the average of from and to when setting is avg or average', () => {
16
+ it('| should return the average of from and to when setting is avg or average', () => {
17
17
  const value: DyFM_RangeValue = { from: 10, to: 20, isRange: true };
18
18
  expect(DyFM_range_pipeTransform(value, DyFM_RangePipe_Setting.avg)).toBe(15);
19
19
  expect(DyFM_range_pipeTransform(value, DyFM_RangePipe_Setting.average)).toBe(15);
20
20
  });
21
21
 
22
- it('should return from when setting is min or from', () => {
22
+ it('| should return from when setting is min or from', () => {
23
23
  const value: DyFM_RangeValue = { from: 10, to: 20, isRange: true };
24
24
  expect(DyFM_range_pipeTransform(value, DyFM_RangePipe_Setting.min)).toBe(10);
25
25
  expect(DyFM_range_pipeTransform(value, DyFM_RangePipe_Setting.from)).toBe(10);
26
26
  });
27
27
 
28
- it('should return to when setting is max or to', () => {
28
+ it('| should return to when setting is max or to', () => {
29
29
  const value: DyFM_RangeValue = { from: 10, to: 20, isRange: true };
30
30
  expect(DyFM_range_pipeTransform(value, DyFM_RangePipe_Setting.max)).toBe(20);
31
31
  expect(DyFM_range_pipeTransform(value, DyFM_RangePipe_Setting.to)).toBe(20);
32
32
  });
33
33
 
34
- it('should return formatted string when setting is both or fromTo', () => {
34
+ it('| should return formatted string when setting is both or fromTo', () => {
35
35
  const value: DyFM_RangeValue = { from: 10, to: 20, isRange: true };
36
36
  expect(DyFM_range_pipeTransform(value, DyFM_RangePipe_Setting.both)).toBe('10 - 20');
37
37
  expect(DyFM_range_pipeTransform(value, DyFM_RangePipe_Setting.fromTo)).toBe('10 - 20');
38
38
  });
39
39
 
40
- /* it('should return transformed value using multiPipes when setting is both or fromTo and multiPipes are provided', () => {
40
+ /* it('| should return transformed value using multiPipes when setting is both or fromTo and multiPipes are provided', () => {
41
41
  const value: DyFM_RangeValue = { from: 10, to: 20, isRange: true };
42
42
  const multiPipes: DyFM_MultiPipe_Setting[] = [{} as DyFM_MultiPipe_Setting];
43
43
  spyOn(DyFM_multiPipe_pipeTransform, 'call').and.callFake(mockMultiPipeTransform);
@@ -46,13 +46,13 @@ describe('DyFM_range_pipeTransform', () => {
46
46
  expect(DyFM_range_pipeTransform(value, DyFM_RangePipe_Setting.fromTo, multiPipes)).toBe('10 - 20');
47
47
  }); */
48
48
 
49
- it('should return the original value if requirements are not met', () => {
49
+ it('| should return the original value if requirements are not met', () => {
50
50
  const value: DyFM_RangeValue = { from: 10, to: 20, isRange: false };
51
51
  expect(DyFM_range_pipeTransform(value, DyFM_RangePipe_Setting.avg)).toBe(value);
52
52
  expect(console.warn).toHaveBeenCalled();
53
53
  });
54
54
 
55
- it('should return the original value for an unknown setting', () => {
55
+ it('| should return the original value for an unknown setting', () => {
56
56
  const value: DyFM_RangeValue = { from: 10, to: 20, isRange: true };
57
57
  expect(DyFM_range_pipeTransform(value, 'unknown')).toBe(value);
58
58
  });
@@ -3,8 +3,8 @@ import { DyFM_region_pipeTransform } from './pip-region-pipe.util';
3
3
  import { DyFM_countryISOs } from '../../../location/_collections/loc-country-isos.const';
4
4
  import { DyFM_CountryISO } from '../../../location/_models/loc-country-iso.interface';
5
5
 
6
- describe('DyFM_region_pipeTransform', () => {
7
- it('should return the region when a valid country ISO is provided', () => {
6
+ describe('| DyFM_region_pipeTransform', () => {
7
+ it('| should return the region when a valid country ISO is provided', () => {
8
8
  const validCountryISO = DyFM_countryISOs[0].iso2;
9
9
  const expectedRegion = DyFM_countryISOs[0].region;
10
10
 
@@ -13,7 +13,7 @@ describe('DyFM_region_pipeTransform', () => {
13
13
  expect(result).toBe(expectedRegion);
14
14
  });
15
15
 
16
- it('should return the input country ISO when an invalid country ISO is provided', () => {
16
+ it('| should return the input country ISO when an invalid country ISO is provided', () => {
17
17
  const invalidCountryISO = 'XX';
18
18
 
19
19
  const result = DyFM_region_pipeTransform(invalidCountryISO);
@@ -21,7 +21,7 @@ describe('DyFM_region_pipeTransform', () => {
21
21
  expect(result).toBe(invalidCountryISO);
22
22
  });
23
23
 
24
- it('should return the input country ISO when the country ISO is not found', () => {
24
+ it('| should return the input country ISO when the country ISO is not found', () => {
25
25
  const notFoundCountryISO = 'ZZ';
26
26
 
27
27
  const result = DyFM_region_pipeTransform(notFoundCountryISO);
@@ -1,43 +1,43 @@
1
1
 
2
2
  import { DyFM_replace_pipeTransform } from './pip-replace-pipe.util';
3
3
 
4
- describe('DyFM_replace_pipeTransform', () => {
5
- it('should replace all occurrences of "from" with "to" in the given string', () => {
4
+ describe('| DyFM_replace_pipeTransform', () => {
5
+ it('| should replace all occurrences of "from" with "to" in the given string', () => {
6
6
  const result = DyFM_replace_pipeTransform('hello world', 'world', 'there');
7
7
  expect(result).toBe('hello there');
8
8
  });
9
9
 
10
- it('should return the original string if "from" is not found', () => {
10
+ it('| should return the original string if "from" is not found', () => {
11
11
  const result = DyFM_replace_pipeTransform('hello world', 'planet', 'there');
12
12
  expect(result).toBe('hello world');
13
13
  });
14
14
 
15
- it('should handle empty "from" and "to" strings', () => {
15
+ it('| should handle empty "from" and "to" strings', () => {
16
16
  const result = DyFM_replace_pipeTransform('hello world', '', '');
17
17
  expect(result).toBe('hello world');
18
18
  });
19
19
 
20
- it('should handle empty "value" string', () => {
20
+ it('| should handle empty "value" string', () => {
21
21
  const result = DyFM_replace_pipeTransform('', 'world', 'there');
22
22
  expect(result).toBe('');
23
23
  });
24
24
 
25
- it('should handle null "value" gracefully', () => {
25
+ it('| should handle null "value" gracefully', () => {
26
26
  const result = DyFM_replace_pipeTransform(null, 'world', 'there');
27
27
  expect(result).toBeNull();
28
28
  });
29
29
 
30
- it('should handle undefined "value" gracefully', () => {
30
+ it('| should handle undefined "value" gracefully', () => {
31
31
  const result = DyFM_replace_pipeTransform(undefined, 'world', 'there');
32
32
  expect(result).toBeUndefined();
33
33
  });
34
34
 
35
- it('should replace all occurrences when "from" is a substring of "value"', () => {
35
+ it('| should replace all occurrences when "from" is a substring of "value"', () => {
36
36
  const result = DyFM_replace_pipeTransform('ababab', 'ab', 'cd');
37
37
  expect(result).toBe('cdcdcd');
38
38
  });
39
39
 
40
- it('should return the original string if "from" and "to" are the same', () => {
40
+ it('| should return the original string if "from" and "to" are the same', () => {
41
41
  const result = DyFM_replace_pipeTransform('hello world', 'world', 'world');
42
42
  expect(result).toBe('hello world');
43
43
  });
@@ -2,19 +2,19 @@
2
2
  import { DyFM_slider_pipeTransform } from './pip-slider-pipe.util';
3
3
  import { DyFM_RangeValue } from '../../../../_models/control-models/range-value.control-model';
4
4
 
5
- describe('DyFM_slider_pipeTransform', () => {
6
- it('should return the string representation of a DyFM_RangeValue instance', () => {
5
+ describe('| DyFM_slider_pipeTransform', () => {
6
+ it('| should return the string representation of a DyFM_RangeValue instance', () => {
7
7
  const rangeValue = new DyFM_RangeValue<number>(1, 10);
8
8
  spyOn(rangeValue, 'toString').and.returnValue('1-10');
9
9
  expect(DyFM_slider_pipeTransform(rangeValue)).toBe('1-10');
10
10
  });
11
11
 
12
- it('should return the string representation of a number', () => {
12
+ it('| should return the string representation of a number', () => {
13
13
  const numberValue = 42;
14
14
  expect(DyFM_slider_pipeTransform(numberValue)).toBe('42');
15
15
  });
16
16
 
17
- it('should return the string as is if the input is a string', () => {
17
+ it('| should return the string as is if the input is a string', () => {
18
18
  const stringValue = 'test';
19
19
  expect(DyFM_slider_pipeTransform(stringValue)).toBe('test');
20
20
  });
@@ -1,13 +1,13 @@
1
1
 
2
2
  import { DyFM_smartReplace_pipeTransform } from './pip-smart-replace-pipe.util';
3
3
 
4
- describe('DyFM_smartReplace_pipeTransform', () => {
5
- it('should return the original value if replacer is not defined', () => {
4
+ describe('| DyFM_smartReplace_pipeTransform', () => {
5
+ it('| should return the original value if replacer is not defined', () => {
6
6
  const result = DyFM_smartReplace_pipeTransform('Hello, {name}!', null);
7
7
  expect(result).toBe('Hello, {name}!');
8
8
  });
9
9
 
10
- it('should replace keys with values from replacer', () => {
10
+ it('| should replace keys with values from replacer', () => {
11
11
  const replacer = { name: { value: 'World', pipes: [] } };
12
12
  spyOn(console, 'warn');
13
13
  const result = DyFM_smartReplace_pipeTransform('Hello, {name}!', replacer);
@@ -15,7 +15,7 @@ describe('DyFM_smartReplace_pipeTransform', () => {
15
15
  expect(console.warn).not.toHaveBeenCalled();
16
16
  });
17
17
 
18
- it('should warn if replacer key has no pipes', () => {
18
+ it('| should warn if replacer key has no pipes', () => {
19
19
  const replacer = { name: { value: 'World' } };
20
20
  spyOn(console, 'warn');
21
21
  const result = DyFM_smartReplace_pipeTransform('Hello, {name}!', replacer);
@@ -28,7 +28,7 @@ describe('DyFM_smartReplace_pipeTransform', () => {
28
28
  );
29
29
  });
30
30
 
31
- it('should warn if replacer key pipes is not an array', () => {
31
+ it('| should warn if replacer key pipes is not an array', () => {
32
32
  const replacer = { name: { value: 'World', pipes: 'not-an-array' } };
33
33
  spyOn(console, 'warn');
34
34
  const result = DyFM_smartReplace_pipeTransform('Hello, {name}!', replacer);
@@ -41,7 +41,7 @@ describe('DyFM_smartReplace_pipeTransform', () => {
41
41
  );
42
42
  });
43
43
 
44
- /* it('should apply multiPipes if provided', () => {
44
+ /* it('| should apply multiPipes if provided', () => {
45
45
  const replacer = { name: 'World' };
46
46
  const multiPipes: DyFM_MultiPipe_Setting[] = [];
47
47
  spyOn(DyFM_multiPipe_pipeTransform).and.callThrough();
@@ -50,7 +50,7 @@ describe('DyFM_smartReplace_pipeTransform', () => {
50
50
  expect(DyFM_multiPipe_pipeTransform).toHaveBeenCalledWith('World', multiPipes);
51
51
  }); */
52
52
 
53
- it('should handle multiple replacements', () => {
53
+ it('| should handle multiple replacements', () => {
54
54
  const replacer = {
55
55
  firstName: { value: 'John', pipes: [] },
56
56
  lastName: { value: 'Doe', pipes: [] }
@@ -2,7 +2,7 @@
2
2
  import { second } from '../../../_collections/constants/times.const';
3
3
  import { DyFM_SocketClient_Params } from './sck-client-params.control-model';
4
4
 
5
- describe('DyFM_SocketClient_Params', () => {
5
+ describe('| DyFM_SocketClient_Params', () => {
6
6
  xit('should assign provided values to the instance', () => {
7
7
  const params: DyFM_SocketClient_Params = {
8
8
  name: 'testName',
@@ -25,7 +25,7 @@ describe('DyFM_SocketClient_Params', () => {
25
25
  expect(instance.socketOptions).toEqual(params.socketOptions);
26
26
  });
27
27
 
28
- it('should set default values for reconnectDelay and reconnect', () => {
28
+ it('| should set default values for reconnectDelay and reconnect', () => {
29
29
  const params: DyFM_SocketClient_Params = {};
30
30
 
31
31
  const instance = new DyFM_SocketClient_Params(params);
@@ -34,7 +34,7 @@ describe('DyFM_SocketClient_Params', () => {
34
34
  expect(instance.reconnect).toBe(true);
35
35
  });
36
36
 
37
- it('should set reconnect to false if socketOptions.autoConnect is true', () => {
37
+ it('| should set reconnect to false if socketOptions.autoConnect is true', () => {
38
38
  const params: DyFM_SocketClient_Params = {
39
39
  socketOptions: { autoConnect: true }
40
40
  };
@@ -44,7 +44,7 @@ describe('DyFM_SocketClient_Params', () => {
44
44
  expect(instance.reconnect).toBe(false);
45
45
  });
46
46
 
47
- it('should set reconnect to false if socketOptions.reconnection is true', () => {
47
+ it('| should set reconnect to false if socketOptions.reconnection is true', () => {
48
48
  const params: DyFM_SocketClient_Params = {
49
49
  socketOptions: { reconnection: true }
50
50
  };
@@ -54,7 +54,7 @@ describe('DyFM_SocketClient_Params', () => {
54
54
  expect(instance.reconnect).toBe(false);
55
55
  });
56
56
 
57
- it('should set reconnect to true if reconnectDelay is provided and socketOptions do not override', () => {
57
+ it('| should set reconnect to true if reconnectDelay is provided and socketOptions do not override', () => {
58
58
  const params: DyFM_SocketClient_Params = {
59
59
  reconnectDelay: second * 5,
60
60
  socketOptions: { autoConnect: false, reconnection: false }
@@ -4,7 +4,7 @@ import { DyFM_Log } from '../../../_collections/utils/log.util';
4
4
  import { DyFM_SocketEvent_Key } from '../_enums/sck-event-key.enum';
5
5
  import { DyFM_SocketEvent, DyFM_SocketEventPreprocessTask, DyFM_SocketEventTask } from './sck-socket-event.control-model';
6
6
 
7
- describe('DyFM_SocketEvent', () => {
7
+ describe('| DyFM_SocketEvent', () => {
8
8
  let socketEvent: DyFM_SocketEvent<any>;
9
9
 
10
10
  beforeEach(() => {
@@ -15,7 +15,7 @@ describe('DyFM_SocketEvent', () => {
15
15
  });
16
16
  });
17
17
 
18
- it('should initialize with default values', () => {
18
+ it('| should initialize with default values', () => {
19
19
  expect(socketEvent.name).toBe(DyFM_SocketEvent_Key.outgoingNewConnection);
20
20
  expect(socketEvent.serviceName).toBe('UnknownSocketService');
21
21
  expect(socketEvent.preProcesses).toEqual([]);
@@ -24,7 +24,7 @@ describe('DyFM_SocketEvent', () => {
24
24
  expect(socketEvent.logEventContent).toBe(DyFM_global_settings.log_settings.socket_eventContent);
25
25
  });
26
26
 
27
- it('should execute preProcesses and tasks', async () => {
27
+ it('| should execute preProcesses and tasks', async () => {
28
28
  const mockPreProcess: DyFM_SocketEventPreprocessTask<any, any> = jasmine.createSpy('preProcess').and.callFake(async (content) => content);
29
29
  const mockTask: DyFM_SocketEventTask<any> = jasmine.createSpy('task').and.callFake(async () => {});
30
30
 
@@ -37,7 +37,7 @@ describe('DyFM_SocketEvent', () => {
37
37
  expect(mockTask).toHaveBeenCalledWith('testContent', 'testIssuer');
38
38
  });
39
39
 
40
- it('should log event if logEvent is true', async () => {
40
+ it('| should log event if logEvent is true', async () => {
41
41
  spyOn(DyFM_Log, 'log');
42
42
  socketEvent.logEvent = true;
43
43
 
@@ -46,7 +46,7 @@ describe('DyFM_SocketEvent', () => {
46
46
  expect(DyFM_Log.log).toHaveBeenCalled();
47
47
  });
48
48
 
49
- it('should handle errors in executeEventTasks gracefully', async () => {
49
+ it('| should handle errors in executeEventTasks gracefully', async () => {
50
50
  const mockTask: DyFM_SocketEventTask<any> = jasmine.createSpy('task').and.callFake(async () => {
51
51
  throw new Error('Task Error');
52
52
  });
@@ -26,7 +26,7 @@ class TestSocketClientService extends DyFM_SocketClient_ServiceBase {
26
26
  }
27
27
  }
28
28
 
29
- xdescribe('DyFM_SocketClient_ServiceBase', () => {
29
+ xdescribe('| DyFM_SocketClient_ServiceBase', () => {
30
30
  let service: TestSocketClientService;
31
31
 
32
32
  /* beforeEach(() => {
@@ -34,13 +34,13 @@ xdescribe('DyFM_SocketClient_ServiceBase', () => {
34
34
  service = new TestSocketClientService();
35
35
  }); */
36
36
 
37
- it('should initialize with default values', () => {
37
+ it('| should initialize with default values', () => {
38
38
  expect(service.connected).toBeFalse();
39
39
  expect(service.subscribed).toBeFalse();
40
40
  expect(service.subscriptionInProgress).toBeFalse();
41
41
  });
42
42
 
43
- it('should connect and disconnect socket', async () => {
43
+ it('| should connect and disconnect socket', async () => {
44
44
  spyOn(DyFM_Log, 'success');
45
45
  spyOn(DyFM_Log, 'warn');
46
46
 
@@ -56,7 +56,7 @@ xdescribe('DyFM_SocketClient_ServiceBase', () => {
56
56
  expect(DyFM_Log.warn).toHaveBeenCalledWith('<x > socket-client(testService) disconnected!');
57
57
  });
58
58
 
59
- it('should handle subscription and unsubscription', async () => {
59
+ it('| should handle subscription and unsubscription', async () => {
60
60
  spyOn(DyFM_Log, 'success');
61
61
  spyOn(DyFM_Log, 'warn');
62
62
 
@@ -68,7 +68,7 @@ xdescribe('DyFM_SocketClient_ServiceBase', () => {
68
68
  expect(DyFM_Log.success).toHaveBeenCalledWith('<x--> socket-client(testService) unsubscribe successful!');
69
69
  });
70
70
 
71
- it('should handle errors during subscription', async () => {
71
+ it('| should handle errors during subscription', async () => {
72
72
  spyOn(DyFM_Log, 'error');
73
73
  spyOn(service, 'getSubscriptionContent').and.throwError('Subscription error');
74
74
 
@@ -79,7 +79,7 @@ xdescribe('DyFM_SocketClient_ServiceBase', () => {
79
79
  }
80
80
  });
81
81
 
82
- it('should emit events correctly', async () => {
82
+ it('| should emit events correctly', async () => {
83
83
  spyOn(DyFM_Log, 'log');
84
84
  spyOn(service['socket'], 'emit');
85
85
 
@@ -88,7 +88,7 @@ xdescribe('DyFM_SocketClient_ServiceBase', () => {
88
88
  expect(service['socket'].emit).toHaveBeenCalledWith(DyFM_SocketEvent_Key.subscribe, { data: 'test' });
89
89
  });
90
90
 
91
- /* it('should reconnect if needed', async () => {
91
+ /* it('| should reconnect if needed', async () => {
92
92
  spyOn(service, 'connectSocket');
93
93
  spyOn(DyFM_delay, 'delay').and.returnValue(Promise.resolve());
94
94
 
@@ -1,22 +1,22 @@
1
1
 
2
2
  import { DyFM_UsageAction } from './usg-action.control-model';
3
3
 
4
- describe('DyFM_UsageAction', () => {
4
+ describe('| DyFM_UsageAction', () => {
5
5
 
6
- it('should create an instance with default values', () => {
6
+ it('| should create an instance with default values', () => {
7
7
  const action = new DyFM_UsageAction();
8
8
  expect(action.action).toBeUndefined();
9
9
  expect(action.time).toBeUndefined();
10
10
  });
11
11
 
12
- it('should create an instance with provided values', () => {
12
+ it('| should create an instance with provided values', () => {
13
13
  const date = new Date();
14
14
  const action = new DyFM_UsageAction({ action: 'testAction', time: date });
15
15
  expect(action.action).toBe('testAction');
16
16
  expect(action.time).toBe(date);
17
17
  });
18
18
 
19
- it('should assign properties from another DyFM_UsageAction instance', () => {
19
+ it('| should assign properties from another DyFM_UsageAction instance', () => {
20
20
  const date = new Date();
21
21
  const sourceAction = new DyFM_UsageAction({ action: 'sourceAction', time: date });
22
22
  const newAction = new DyFM_UsageAction(sourceAction);
@@ -2,8 +2,8 @@
2
2
  import { DyFM_DailyUsageData } from './usg-daily-usage-data.control-model';
3
3
  import { DyFM_UsageSession } from './usg-session.data-model';
4
4
 
5
- describe('DyFM_DailyUsageData', () => {
6
- it('should create an instance with default values', () => {
5
+ describe('| DyFM_DailyUsageData', () => {
6
+ it('| should create an instance with default values', () => {
7
7
  const instance = new DyFM_DailyUsageData();
8
8
  expect(instance.date).toBeUndefined();
9
9
  expect(instance.totalVisitTime).toBe(0);
@@ -13,7 +13,7 @@ describe('DyFM_DailyUsageData', () => {
13
13
  expect(instance.visitations).toEqual([]);
14
14
  });
15
15
 
16
- it('should create an instance with provided values', () => {
16
+ it('| should create an instance with provided values', () => {
17
17
  const usageSession: DyFM_UsageSession = { /* mock session data */ };
18
18
  const data: DyFM_DailyUsageData = {
19
19
  date: '2023-10-01',
@@ -2,8 +2,8 @@
2
2
  import { DyFM_UsageData, DyFM_UsageD } from './usg-data.control-model';
3
3
  import { DyFM_UsageAction } from './usg-action.control-model';
4
4
 
5
- describe('DyFM_UsageData', () => {
6
- it('should create an instance with default values', () => {
5
+ describe('| DyFM_UsageData', () => {
6
+ it('| should create an instance with default values', () => {
7
7
  const usageData = new DyFM_UsageData();
8
8
  expect(usageData.page).toBeUndefined();
9
9
  expect(usageData.opened).toBeUndefined();
@@ -11,7 +11,7 @@ describe('DyFM_UsageData', () => {
11
11
  expect(usageData.actions).toEqual([]);
12
12
  });
13
13
 
14
- it('should create an instance with provided values', () => {
14
+ it('| should create an instance with provided values', () => {
15
15
  const actions: DyFM_UsageAction[] = [{ /* mock action data */ }];
16
16
  const set: DyFM_UsageData = {
17
17
  page: 'HomePage',
@@ -27,7 +27,7 @@ describe('DyFM_UsageData', () => {
27
27
  expect(usageData.actions).toEqual(actions);
28
28
  });
29
29
 
30
- it('should create an instance with partial provided values', () => {
30
+ it('| should create an instance with partial provided values', () => {
31
31
  const set: Partial<DyFM_UsageData> = {
32
32
  page: 'ContactPage'
33
33
  };