@futdevpro/fsm-dynamo 1.15.1 → 1.15.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/.cursor/rules/__assistant_guide.mdc +30 -0
- package/.cursor/rules/__main.mdc +62 -0
- package/.cursor/rules/_ag_backend-structure.mdc +86 -0
- package/.cursor/rules/_ag_backend.mdc +16 -0
- package/.cursor/rules/_ag_debug.mdc +8 -0
- package/.cursor/rules/_ag_documentation_writing_rules.mdc +372 -0
- package/.cursor/rules/_ag_file-refactoring.mdc +113 -0
- package/.cursor/rules/_ag_fixes_rules.mdc +6 -0
- package/.cursor/rules/_ag_frontend-structure.mdc +87 -0
- package/.cursor/rules/_ag_frontend.mdc +40 -0
- package/.cursor/rules/_ag_import-rules.mdc +45 -0
- package/.cursor/rules/_ag_naming.mdc +116 -0
- package/.cursor/rules/_ag_running_commands.mdc +5 -0
- package/.cursor/rules/_ag_server-controller.mdc +6 -0
- package/.cursor/rules/_ag_should-be.mdc +7 -0
- package/.cursor/rules/_ag_swearing.mdc +47 -0
- package/.cursor/rules/ai_development_guide.md +61 -0
- package/.cursor/rules/ai_directives.md +114 -0
- package/.cursor/rules/cursor-rules.md +160 -0
- package/.cursor/rules/default-command.mdc +229 -0
- package/.cursor/rules/error_code_pattern.md +40 -0
- package/.cursor/rules/saved rule mcp server use.md +16 -0
- package/build/_modules/data-handler/_models/data-handler.control-model.js +17 -17
- package/build/_modules/data-handler/_models/data-handler.control-model.js.map +1 -1
- package/futdevpro-fsm-dynamo-01.15.2.tgz +0 -0
- package/package.json +2 -2
- package/src/_modules/data-handler/_models/data-handler.control-model.ts +17 -17
- package/build/_collections/utils/array.util.spec.d.ts +0 -2
- package/build/_collections/utils/array.util.spec.d.ts.map +0 -1
- package/build/_collections/utils/array.util.spec.js +0 -239
- package/build/_collections/utils/array.util.spec.js.map +0 -1
- package/build/_collections/utils/log.util.spec.d.ts +0 -2
- package/build/_collections/utils/log.util.spec.d.ts.map +0 -1
- package/build/_collections/utils/log.util.spec.js +0 -633
- package/build/_collections/utils/log.util.spec.js.map +0 -1
- package/build/_collections/utils/math/box-bounds.util.spec.d.ts +0 -2
- package/build/_collections/utils/math/box-bounds.util.spec.d.ts.map +0 -1
- package/build/_collections/utils/math/box-bounds.util.spec.js +0 -97
- package/build/_collections/utils/math/box-bounds.util.spec.js.map +0 -1
- package/build/_collections/utils/math/math.util.spec.d.ts +0 -2
- package/build/_collections/utils/math/math.util.spec.d.ts.map +0 -1
- package/build/_collections/utils/math/math.util.spec.js +0 -80
- package/build/_collections/utils/math/math.util.spec.js.map +0 -1
- package/build/_collections/utils/math/random.util.spec.d.ts +0 -2
- package/build/_collections/utils/math/random.util.spec.d.ts.map +0 -1
- package/build/_collections/utils/math/random.util.spec.js +0 -75
- package/build/_collections/utils/math/random.util.spec.js.map +0 -1
- package/build/_collections/utils/math/trigonometry.util.spec.d.ts +0 -2
- package/build/_collections/utils/math/trigonometry.util.spec.d.ts.map +0 -1
- package/build/_collections/utils/math/trigonometry.util.spec.js +0 -49
- package/build/_collections/utils/math/trigonometry.util.spec.js.map +0 -1
- package/build/_collections/utils/math/vector2.util.spec.d.ts +0 -2
- package/build/_collections/utils/math/vector2.util.spec.d.ts.map +0 -1
- package/build/_collections/utils/math/vector2.util.spec.js +0 -82
- package/build/_collections/utils/math/vector2.util.spec.js.map +0 -1
- package/build/_collections/utils/object.util.spec.d.ts +0 -2
- package/build/_collections/utils/object.util.spec.d.ts.map +0 -1
- package/build/_collections/utils/object.util.spec.js +0 -506
- package/build/_collections/utils/object.util.spec.js.map +0 -1
- package/build/_collections/utils/regex/password-regex.util.spec.d.ts +0 -2
- package/build/_collections/utils/regex/password-regex.util.spec.d.ts.map +0 -1
- package/build/_collections/utils/regex/password-regex.util.spec.js +0 -44
- package/build/_collections/utils/regex/password-regex.util.spec.js.map +0 -1
- package/build/_collections/utils/regex/regex.util.spec.d.ts +0 -2
- package/build/_collections/utils/regex/regex.util.spec.d.ts.map +0 -1
- package/build/_collections/utils/regex/regex.util.spec.js +0 -40
- package/build/_collections/utils/regex/regex.util.spec.js.map +0 -1
- package/build/_collections/utils/regex/username-regex.util.spec.d.ts +0 -2
- package/build/_collections/utils/regex/username-regex.util.spec.d.ts.map +0 -1
- package/build/_collections/utils/regex/username-regex.util.spec.js +0 -59
- package/build/_collections/utils/regex/username-regex.util.spec.js.map +0 -1
- package/build/_collections/utils/round-list.util.spec.d.ts +0 -2
- package/build/_collections/utils/round-list.util.spec.d.ts.map +0 -1
- package/build/_collections/utils/round-list.util.spec.js +0 -65
- package/build/_collections/utils/round-list.util.spec.js.map +0 -1
- package/build/_collections/utils/stack.util.spec.d.ts +0 -2
- package/build/_collections/utils/stack.util.spec.d.ts.map +0 -1
- package/build/_collections/utils/stack.util.spec.js +0 -290
- package/build/_collections/utils/stack.util.spec.js.map +0 -1
- package/build/_collections/utils/string-case.util.spec.d.ts +0 -2
- package/build/_collections/utils/string-case.util.spec.d.ts.map +0 -1
- package/build/_collections/utils/string-case.util.spec.js +0 -360
- package/build/_collections/utils/string-case.util.spec.js.map +0 -1
- package/build/_collections/utils/string.util.spec.d.ts +0 -2
- package/build/_collections/utils/string.util.spec.d.ts.map +0 -1
- package/build/_collections/utils/string.util.spec.js +0 -860
- package/build/_collections/utils/string.util.spec.js.map +0 -1
- package/build/_collections/utils/time.util.spec.d.ts +0 -2
- package/build/_collections/utils/time.util.spec.d.ts.map +0 -1
- package/build/_collections/utils/time.util.spec.js +0 -38
- package/build/_collections/utils/time.util.spec.js.map +0 -1
- package/build/_collections/utils/type-cloning-facility.util.spec.d.ts +0 -2
- package/build/_collections/utils/type-cloning-facility.util.spec.d.ts.map +0 -1
- package/build/_collections/utils/type-cloning-facility.util.spec.js +0 -41
- package/build/_collections/utils/type-cloning-facility.util.spec.js.map +0 -1
- package/build/_collections/utils/uuid.util.spec.d.ts +0 -2
- package/build/_collections/utils/uuid.util.spec.d.ts.map +0 -1
- package/build/_collections/utils/uuid.util.spec.js +0 -29
- package/build/_collections/utils/uuid.util.spec.js.map +0 -1
- package/build/_models/control-models/data-model-params.control-model.spec.d.ts +0 -2
- package/build/_models/control-models/data-model-params.control-model.spec.d.ts.map +0 -1
- package/build/_models/control-models/data-model-params.control-model.spec.js +0 -64
- package/build/_models/control-models/data-model-params.control-model.spec.js.map +0 -1
- package/build/_models/control-models/data-property-params.control-model.spec.d.ts +0 -2
- package/build/_models/control-models/data-property-params.control-model.spec.d.ts.map +0 -1
- package/build/_models/control-models/data-property-params.control-model.spec.js +0 -74
- package/build/_models/control-models/data-property-params.control-model.spec.js.map +0 -1
- package/build/_models/control-models/error.control-model.spec.d.ts +0 -2
- package/build/_models/control-models/error.control-model.spec.d.ts.map +0 -1
- package/build/_models/control-models/error.control-model.spec.js +0 -664
- package/build/_models/control-models/error.control-model.spec.js.map +0 -1
- package/build/_models/control-models/poll.control-model.spec.d.ts +0 -2
- package/build/_models/control-models/poll.control-model.spec.d.ts.map +0 -1
- package/build/_models/control-models/poll.control-model.spec.js +0 -57
- package/build/_models/control-models/poll.control-model.spec.js.map +0 -1
- package/build/_models/control-models/range-value.control-model.spec.d.ts +0 -2
- package/build/_models/control-models/range-value.control-model.spec.d.ts.map +0 -1
- package/build/_models/control-models/range-value.control-model.spec.js +0 -163
- package/build/_models/control-models/range-value.control-model.spec.js.map +0 -1
- package/build/_modules/crypto/_collections/crypto.util.edge.spec.d.ts +0 -2
- package/build/_modules/crypto/_collections/crypto.util.edge.spec.d.ts.map +0 -1
- package/build/_modules/crypto/_collections/crypto.util.edge.spec.js +0 -551
- package/build/_modules/crypto/_collections/crypto.util.edge.spec.js.map +0 -1
- package/build/_modules/crypto/_collections/crypto.util.extra.spec.d.ts +0 -2
- package/build/_modules/crypto/_collections/crypto.util.extra.spec.d.ts.map +0 -1
- package/build/_modules/crypto/_collections/crypto.util.extra.spec.js +0 -555
- package/build/_modules/crypto/_collections/crypto.util.extra.spec.js.map +0 -1
- package/build/_modules/crypto/_collections/crypto.util.simple.spec.d.ts +0 -2
- package/build/_modules/crypto/_collections/crypto.util.simple.spec.d.ts.map +0 -1
- package/build/_modules/crypto/_collections/crypto.util.simple.spec.js +0 -429
- package/build/_modules/crypto/_collections/crypto.util.simple.spec.js.map +0 -1
- package/build/_modules/custom-data/_models/cud.data-model.spec.d.ts +0 -2
- package/build/_modules/custom-data/_models/cud.data-model.spec.d.ts.map +0 -1
- package/build/_modules/custom-data/_models/cud.data-model.spec.js +0 -35
- package/build/_modules/custom-data/_models/cud.data-model.spec.js.map +0 -1
- package/build/_modules/location/_collections/loc-regions.util.spec.d.ts +0 -2
- package/build/_modules/location/_collections/loc-regions.util.spec.d.ts.map +0 -1
- package/build/_modules/location/_collections/loc-regions.util.spec.js +0 -51
- package/build/_modules/location/_collections/loc-regions.util.spec.js.map +0 -1
- package/build/_modules/location/_collections/loc.util.spec.d.ts +0 -2
- package/build/_modules/location/_collections/loc.util.spec.d.ts.map +0 -1
- package/build/_modules/location/_collections/loc.util.spec.js +0 -39
- package/build/_modules/location/_collections/loc.util.spec.js.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.spec.d.ts +0 -2
- package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.spec.d.ts.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.spec.js +0 -33
- package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.spec.js.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.spec.d.ts +0 -2
- package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.spec.d.ts.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.spec.js +0 -36
- package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.spec.js.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.spec.d.ts +0 -2
- package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.spec.d.ts.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.spec.js +0 -35
- package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.spec.js.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.spec.d.ts +0 -2
- package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.spec.d.ts.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.spec.js +0 -31
- package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.spec.js.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.spec.d.ts +0 -2
- package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.spec.d.ts.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.spec.js +0 -54
- package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.spec.js.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.spec.d.ts +0 -2
- package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.spec.d.ts.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.spec.js +0 -26
- package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.spec.js.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.spec.d.ts +0 -2
- package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.spec.d.ts.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.spec.js +0 -50
- package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.spec.js.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.spec.d.ts +0 -2
- package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.spec.d.ts.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.spec.js +0 -23
- package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.spec.js.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.spec.d.ts +0 -2
- package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.spec.d.ts.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.spec.js +0 -38
- package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.spec.js.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.spec.d.ts +0 -2
- package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.spec.d.ts.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.spec.js +0 -20
- package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.spec.js.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.spec.d.ts +0 -2
- package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.spec.d.ts.map +0 -1
- package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.spec.js +0 -50
- package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.spec.js.map +0 -1
- package/build/_modules/socket/_models/sck-client-params.control-model.spec.d.ts +0 -2
- package/build/_modules/socket/_models/sck-client-params.control-model.spec.d.ts.map +0 -1
- package/build/_modules/socket/_models/sck-client-params.control-model.spec.js +0 -54
- package/build/_modules/socket/_models/sck-client-params.control-model.spec.js.map +0 -1
- package/build/_modules/socket/_models/sck-socket-event.control-model.spec.d.ts +0 -2
- package/build/_modules/socket/_models/sck-socket-event.control-model.spec.d.ts.map +0 -1
- package/build/_modules/socket/_models/sck-socket-event.control-model.spec.js +0 -49
- package/build/_modules/socket/_models/sck-socket-event.control-model.spec.js.map +0 -1
- package/build/_modules/socket/_services/sck-client.service-base.spec.d.ts +0 -2
- package/build/_modules/socket/_services/sck-client.service-base.spec.d.ts.map +0 -1
- package/build/_modules/socket/_services/sck-client.service-base.spec.js +0 -82
- package/build/_modules/socket/_services/sck-client.service-base.spec.js.map +0 -1
- package/build/_modules/usage/_models/usg-action.control-model.spec.d.ts +0 -2
- package/build/_modules/usage/_models/usg-action.control-model.spec.d.ts.map +0 -1
- package/build/_modules/usage/_models/usg-action.control-model.spec.js +0 -24
- package/build/_modules/usage/_models/usg-action.control-model.spec.js.map +0 -1
- package/build/_modules/usage/_models/usg-daily-usage-data.control-model.spec.d.ts +0 -2
- package/build/_modules/usage/_models/usg-daily-usage-data.control-model.spec.d.ts.map +0 -1
- package/build/_modules/usage/_models/usg-daily-usage-data.control-model.spec.js +0 -33
- package/build/_modules/usage/_models/usg-daily-usage-data.control-model.spec.js.map +0 -1
- package/build/_modules/usage/_models/usg-data.control-model.spec.d.ts +0 -2
- package/build/_modules/usage/_models/usg-data.control-model.spec.d.ts.map +0 -1
- package/build/_modules/usage/_models/usg-data.control-model.spec.js +0 -37
- package/build/_modules/usage/_models/usg-data.control-model.spec.js.map +0 -1
- package/build/_modules/usage/_models/usg-session.data-model.spec.d.ts +0 -2
- package/build/_modules/usage/_models/usg-session.data-model.spec.d.ts.map +0 -1
- package/build/_modules/usage/_models/usg-session.data-model.spec.js +0 -82
- package/build/_modules/usage/_models/usg-session.data-model.spec.js.map +0 -1
- package/futdevpro-fsm-dynamo-01.15.01.tgz +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-country-pipe.util.spec.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-country-pipe.util.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const pip_country_pipe_util_1 = require("./pip-country-pipe.util");
|
|
4
|
-
const loc_country_isos_const_1 = require("../../../location/_collections/loc-country-isos.const");
|
|
5
|
-
describe('| DyFM_country_pipeTransform', () => {
|
|
6
|
-
it('| should return the country name when a valid ISO code is provided', () => {
|
|
7
|
-
const validISO = loc_country_isos_const_1.DyFM_countryISOs[0].iso2;
|
|
8
|
-
const expectedName = loc_country_isos_const_1.DyFM_countryISOs[0].name;
|
|
9
|
-
const result = (0, pip_country_pipe_util_1.DyFM_country_pipeTransform)(validISO);
|
|
10
|
-
expect(result).toBe(expectedName);
|
|
11
|
-
});
|
|
12
|
-
it('| should return the input ISO code when an invalid ISO code is provided', () => {
|
|
13
|
-
const invalidISO = 'ZZ';
|
|
14
|
-
const result = (0, pip_country_pipe_util_1.DyFM_country_pipeTransform)(invalidISO);
|
|
15
|
-
expect(result).toBe(invalidISO);
|
|
16
|
-
});
|
|
17
|
-
it('| should return the input ISO code when an empty string is provided', () => {
|
|
18
|
-
const emptyISO = '';
|
|
19
|
-
const result = (0, pip_country_pipe_util_1.DyFM_country_pipeTransform)(emptyISO);
|
|
20
|
-
expect(result).toBe(emptyISO);
|
|
21
|
-
});
|
|
22
|
-
it('| should return the input ISO code when a null value is provided', () => {
|
|
23
|
-
const nullISO = null;
|
|
24
|
-
const result = (0, pip_country_pipe_util_1.DyFM_country_pipeTransform)(nullISO);
|
|
25
|
-
expect(result).toBe(nullISO);
|
|
26
|
-
});
|
|
27
|
-
it('| should return the input ISO code when an undefined value is provided', () => {
|
|
28
|
-
const undefinedISO = undefined;
|
|
29
|
-
const result = (0, pip_country_pipe_util_1.DyFM_country_pipeTransform)(undefinedISO);
|
|
30
|
-
expect(result).toBe(undefinedISO);
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
//# sourceMappingURL=pip-country-pipe.util.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-country-pipe.util.spec.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-country-pipe.util.spec.ts"],"names":[],"mappings":";;AACA,mEAAqE;AACrE,kGAAyF;AAGzF,QAAQ,CAAC,8BAA8B,EAAE,GAAG,EAAE;IAC5C,EAAE,CAAC,oEAAoE,EAAE,GAAG,EAAE;QAC5E,MAAM,QAAQ,GAAW,yCAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAClD,MAAM,YAAY,GAAW,yCAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAEtD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/_collections/utils/pip-custom-pipe.util.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const pip_custom_pipe_util_1 = require("./pip-custom-pipe.util");
|
|
4
|
-
describe('| DyFM_custom_pipeTransform', () => {
|
|
5
|
-
it('| should apply the custom transform function to the input value', () => {
|
|
6
|
-
const input = 5;
|
|
7
|
-
const transformFunction = (x) => x * 2;
|
|
8
|
-
const result = (0, pip_custom_pipe_util_1.DyFM_custom_pipeTransform)(input, transformFunction);
|
|
9
|
-
expect(result).toBe(10);
|
|
10
|
-
});
|
|
11
|
-
it('| should handle string transformations correctly', () => {
|
|
12
|
-
const input = 'hello';
|
|
13
|
-
const transformFunction = (x) => x.toUpperCase();
|
|
14
|
-
const result = (0, pip_custom_pipe_util_1.DyFM_custom_pipeTransform)(input, transformFunction);
|
|
15
|
-
expect(result).toBe('HELLO');
|
|
16
|
-
});
|
|
17
|
-
it('| should handle object transformations correctly', () => {
|
|
18
|
-
const input = { name: 'Alice', age: 30 };
|
|
19
|
-
const transformFunction = (x) => ({ ...x, age: x.age + 1 });
|
|
20
|
-
const result = (0, pip_custom_pipe_util_1.DyFM_custom_pipeTransform)(input, transformFunction);
|
|
21
|
-
expect(result).toEqual({ name: 'Alice', age: 31 });
|
|
22
|
-
});
|
|
23
|
-
it('| should handle array transformations correctly', () => {
|
|
24
|
-
const input = [1, 2, 3];
|
|
25
|
-
const transformFunction = (x) => x.map(num => num * 2);
|
|
26
|
-
const result = (0, pip_custom_pipe_util_1.DyFM_custom_pipeTransform)(input, transformFunction);
|
|
27
|
-
expect(result).toEqual([2, 4, 6]);
|
|
28
|
-
});
|
|
29
|
-
it('| should return undefined if the transform function returns undefined', () => {
|
|
30
|
-
const input = 'test';
|
|
31
|
-
const transformFunction = (x) => undefined;
|
|
32
|
-
const result = (0, pip_custom_pipe_util_1.DyFM_custom_pipeTransform)(input, transformFunction);
|
|
33
|
-
expect(result).toBeUndefined();
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
//# sourceMappingURL=pip-custom-pipe.util.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-custom-pipe.util.spec.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-custom-pipe.util.spec.ts"],"names":[],"mappings":";;AACA,iEAAmE;AAEnE,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC3C,EAAE,CAAC,iEAAiE,EAAE,GAAG,EAAE;QACzE,MAAM,KAAK,GAAG,CAAC,CAAC;QAChB,MAAM,iBAAiB,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;QAC/C,MAAM,MAAM,GAAG,IAAA,gDAAyB,EAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;QACnE,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;QAC1D,MAAM,KAAK,GAAG,OAAO,CAAC;QACtB,MAAM,iBAAiB,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QACzD,MAAM,MAAM,GAAG,IAAA,gDAAyB,EAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;QACnE,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;QAC1D,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;QACzC,MAAM,iBAAiB,GAAG,CAAC,CAAgC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC;QAC3F,MAAM,MAAM,GAAG,IAAA,gDAAyB,EAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;QACnE,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;QACzD,MAAM,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QACxB,MAAM,iBAAiB,GAAG,CAAC,CAAW,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,IAAA,gDAAyB,EAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;QACnE,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uEAAuE,EAAE,GAAG,EAAE;QAC/E,MAAM,KAAK,GAAG,MAAM,CAAC;QACrB,MAAM,iBAAiB,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,SAAS,CAAC;QACnD,MAAM,MAAM,GAAG,IAAA,gDAAyB,EAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;QACnE,MAAM,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-division-pipe.util.spec.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-division-pipe.util.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const pip_division_pipe_util_1 = require("./pip-division-pipe.util");
|
|
4
|
-
const loc_country_divisions_const_1 = require("../../../location/_collections/loc-country-divisions.const");
|
|
5
|
-
describe('| DyFM_division_pipeTransform', () => {
|
|
6
|
-
const mockCountryDivisions = [
|
|
7
|
-
{ code: 'CA', iso: 'US', name: 'California' },
|
|
8
|
-
{ code: 'TX', iso: 'US', name: 'Texas' },
|
|
9
|
-
{ code: 'ON', iso: 'CA', name: 'Ontario' }
|
|
10
|
-
];
|
|
11
|
-
beforeEach(() => {
|
|
12
|
-
loc_country_divisions_const_1.DyFM_countryDivisions = mockCountryDivisions;
|
|
13
|
-
});
|
|
14
|
-
it('| should return the name of the division when a matching division code and country ISO are found', () => {
|
|
15
|
-
const result = (0, pip_division_pipe_util_1.DyFM_division_pipeTransform)('CA', 'US');
|
|
16
|
-
expect(result).toBe('California');
|
|
17
|
-
});
|
|
18
|
-
it('| should return the division code when no matching division is found', () => {
|
|
19
|
-
const result = (0, pip_division_pipe_util_1.DyFM_division_pipeTransform)('NY', 'US');
|
|
20
|
-
expect(result).toBe('NY');
|
|
21
|
-
});
|
|
22
|
-
it('| should return the division code when the country ISO does not match', () => {
|
|
23
|
-
const result = (0, pip_division_pipe_util_1.DyFM_division_pipeTransform)('CA', 'CA');
|
|
24
|
-
expect(result).toBe('CA');
|
|
25
|
-
});
|
|
26
|
-
it('| should return the division code when the division code is not found', () => {
|
|
27
|
-
const result = (0, pip_division_pipe_util_1.DyFM_division_pipeTransform)('BC', 'CA');
|
|
28
|
-
expect(result).toBe('BC');
|
|
29
|
-
});
|
|
30
|
-
it('| should handle empty division code and country ISO gracefully', () => {
|
|
31
|
-
const result = (0, pip_division_pipe_util_1.DyFM_division_pipeTransform)('', '');
|
|
32
|
-
expect(result).toBe('');
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=pip-division-pipe.util.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-division-pipe.util.spec.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-division-pipe.util.spec.ts"],"names":[],"mappings":";;AACA,qEAAuE;AAEvE,4GAAmG;AAEnG,QAAQ,CAAC,+BAA+B,EAAE,GAAG,EAAE;IAC7C,MAAM,oBAAoB,GAA2B;QACnD,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE;QAC7C,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE;QACxC,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE;KAC3C,CAAC;IAEF,UAAU,CAAC,GAAG,EAAE;QACb,mDAAgD,GAAG,oBAAoB,CAAC;IAC3E,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kGAAkG,EAAE,GAAG,EAAE;QAC1G,MAAM,MAAM,GAAG,IAAA,oDAA2B,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACvD,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sEAAsE,EAAE,GAAG,EAAE;QAC9E,MAAM,MAAM,GAAG,IAAA,oDAA2B,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACvD,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uEAAuE,EAAE,GAAG,EAAE;QAC/E,MAAM,MAAM,GAAG,IAAA,oDAA2B,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACvD,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uEAAuE,EAAE,GAAG,EAAE;QAC/E,MAAM,MAAM,GAAG,IAAA,oDAA2B,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACvD,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gEAAgE,EAAE,GAAG,EAAE;QACxE,MAAM,MAAM,GAAG,IAAA,oDAA2B,EAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QACnD,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-list-pipe.util.spec.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-list-pipe.util.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const pip_list_pipe_util_1 = require("./pip-list-pipe.util");
|
|
4
|
-
describe('| DyFM_list_pipeTransform', () => {
|
|
5
|
-
it('| should transform an array of numbers into a comma-separated string with spaces', () => {
|
|
6
|
-
const input = [1, 2, 3];
|
|
7
|
-
const expectedOutput = '1, 2, 3';
|
|
8
|
-
expect((0, pip_list_pipe_util_1.DyFM_list_pipeTransform)(input)).toBe(expectedOutput);
|
|
9
|
-
});
|
|
10
|
-
it('| should transform an array of strings into a comma-separated string with spaces', () => {
|
|
11
|
-
const input = ['apple', 'banana', 'cherry'];
|
|
12
|
-
const expectedOutput = 'apple, banana, cherry';
|
|
13
|
-
expect((0, pip_list_pipe_util_1.DyFM_list_pipeTransform)(input)).toBe(expectedOutput);
|
|
14
|
-
});
|
|
15
|
-
it('| should return an empty string for an empty array', () => {
|
|
16
|
-
const input = [];
|
|
17
|
-
const expectedOutput = '';
|
|
18
|
-
expect((0, pip_list_pipe_util_1.DyFM_list_pipeTransform)(input)).toBe(expectedOutput);
|
|
19
|
-
});
|
|
20
|
-
it('| should handle an array with a single element correctly', () => {
|
|
21
|
-
const input = [42];
|
|
22
|
-
const expectedOutput = '42';
|
|
23
|
-
expect((0, pip_list_pipe_util_1.DyFM_list_pipeTransform)(input)).toBe(expectedOutput);
|
|
24
|
-
});
|
|
25
|
-
it('| should handle an array with mixed types correctly', () => {
|
|
26
|
-
const input = [1, 'apple', true];
|
|
27
|
-
const expectedOutput = '1, apple, true';
|
|
28
|
-
expect((0, pip_list_pipe_util_1.DyFM_list_pipeTransform)(input)).toBe(expectedOutput);
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
//# sourceMappingURL=pip-list-pipe.util.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-list-pipe.util.spec.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-list-pipe.util.spec.ts"],"names":[],"mappings":";;AACA,6DAA+D;AAE/D,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACzC,EAAE,CAAC,kFAAkF,EAAE,GAAG,EAAE;QAC1F,MAAM,KAAK,GAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QAClC,MAAM,cAAc,GAAW,SAAS,CAAC;QACzC,MAAM,CAAC,IAAA,4CAAuB,EAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kFAAkF,EAAE,GAAG,EAAE;QAC1F,MAAM,KAAK,GAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACtD,MAAM,cAAc,GAAW,uBAAuB,CAAC;QACvD,MAAM,CAAC,IAAA,4CAAuB,EAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oDAAoD,EAAE,GAAG,EAAE;QAC5D,MAAM,KAAK,GAAU,EAAE,CAAC;QACxB,MAAM,cAAc,GAAW,EAAE,CAAC;QAClC,MAAM,CAAC,IAAA,4CAAuB,EAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0DAA0D,EAAE,GAAG,EAAE;QAClE,MAAM,KAAK,GAAa,CAAC,EAAE,CAAC,CAAC;QAC7B,MAAM,cAAc,GAAW,IAAI,CAAC;QACpC,MAAM,CAAC,IAAA,4CAAuB,EAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qDAAqD,EAAE,GAAG,EAAE;QAC7D,MAAM,KAAK,GAAU,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;QACxC,MAAM,cAAc,GAAW,gBAAgB,CAAC;QAChD,MAAM,CAAC,IAAA,4CAAuB,EAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-multi-pipe-pipe.util.spec.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const pip_enum_1 = require("../../_enums/pip.enum");
|
|
4
|
-
const pip_multi_pipe_pipe_util_1 = require("./pip-multi-pipe-pipe.util");
|
|
5
|
-
describe('| DyFM_multiPipe_pipeTransform', () => {
|
|
6
|
-
it('| should return the original value if no pipes are provided', () => {
|
|
7
|
-
const value = 'test';
|
|
8
|
-
const pipes = [];
|
|
9
|
-
expect((0, pip_multi_pipe_pipe_util_1.DyFM_multiPipe_pipeTransform)(value, pipes)).toBe(value);
|
|
10
|
-
});
|
|
11
|
-
/* it('| should return the original value if pipe has more than one key', () => {
|
|
12
|
-
const value = 'test';
|
|
13
|
-
const pipes: DyFM_MultiPipe_Setting[] = [{ pipe1: [], pipe2: [] }];
|
|
14
|
-
expect(DyFM_multiPipe_pipeTransform(value, pipes)).toBe(value);
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
it('| should return the original value if pipe is not available', () => {
|
|
18
|
-
const value = 'test';
|
|
19
|
-
const pipes: DyFM_MultiPipe_Setting[] = [{ unknownPipe: [] }];
|
|
20
|
-
expect(DyFM_multiPipe_pipeTransform(value, pipes)).toBe(value);
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
it('| should transform value using a known pipe without arguments', () => {
|
|
24
|
-
const value = 'test';
|
|
25
|
-
const pipes: DyFM_MultiPipe_Setting[] = [{ [DyFM_Pipe.currency]: [] }];
|
|
26
|
-
DyFM_pipeTransforms[DyFM_Pipe.currency] = (val: unknown) => 'transformed';
|
|
27
|
-
expect(DyFM_multiPipe_pipeTransform(value, pipes)).toBe('transformed');
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
it('| should transform value using a known pipe with arguments', () => {
|
|
31
|
-
const value = 'test';
|
|
32
|
-
const pipes: DyFM_MultiPipe_Setting[] = [{ [DyFM_Pipe.currency]: ['arg1'] }];
|
|
33
|
-
DyFM_pipeTransforms[DyFM_Pipe.currency] = (val: unknown, arg: string) => `transformed with ${arg}`;
|
|
34
|
-
expect(DyFM_multiPipe_pipeTransform(value, pipes)).toBe('transformed with arg1');
|
|
35
|
-
}); */
|
|
36
|
-
xit('should return the original value if Angular pipe is not defined', () => {
|
|
37
|
-
const value = 'test';
|
|
38
|
-
const pipes = [{ [pip_enum_1.DyFM_AngularMultiPipeAvailable.currency]: [] }];
|
|
39
|
-
expect((0, pip_multi_pipe_pipe_util_1.DyFM_multiPipe_pipeTransform)(value, pipes)).toBe(value);
|
|
40
|
-
});
|
|
41
|
-
it('| should transform value using a defined Angular pipe', () => {
|
|
42
|
-
const value = 'test';
|
|
43
|
-
const pipes = [{ [pip_enum_1.DyFM_AngularMultiPipeAvailable.currency]: ['arg1'] }];
|
|
44
|
-
pip_multi_pipe_pipe_util_1.DyFM_multiPipeAngularPipes[pip_enum_1.DyFM_AngularMultiPipeAvailable.currency] = (val, arg) => `angular transformed with ${arg}`;
|
|
45
|
-
expect((0, pip_multi_pipe_pipe_util_1.DyFM_multiPipe_pipeTransform)(value, pipes)).toBe('angular transformed with arg1');
|
|
46
|
-
});
|
|
47
|
-
/* it('| should handle errors gracefully and return the original value', () => {
|
|
48
|
-
const value = 'test';
|
|
49
|
-
const pipes: DyFM_MultiPipe_Setting[] = [{ [DyFM_Pipe.currency]: [] }];
|
|
50
|
-
DyFM_pipeTransforms[DyFM_Pipe.currency] = () => { throw new Error('Test error'); };
|
|
51
|
-
expect(DyFM_multiPipe_pipeTransform(value, pipes)).toBe(value);
|
|
52
|
-
}); */
|
|
53
|
-
});
|
|
54
|
-
//# sourceMappingURL=pip-multi-pipe-pipe.util.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-multi-pipe-pipe.util.spec.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.spec.ts"],"names":[],"mappings":";;AACA,oDAE+B;AAE/B,yEAAsG;AAEtG,QAAQ,CAAC,gCAAgC,EAAE,GAAG,EAAE;IAC9C,EAAE,CAAC,6DAA6D,EAAE,GAAG,EAAE;QACrE,MAAM,KAAK,GAAG,MAAM,CAAC;QACrB,MAAM,KAAK,GAA6B,EAAE,CAAC;QAC3C,MAAM,CAAC,IAAA,uDAA4B,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;IAEH;;;;;;;;;;;;;;;;;;;;;;;;UAwBM;IAEN,GAAG,CAAC,iEAAiE,EAAE,GAAG,EAAE;QAC1E,MAAM,KAAK,GAAG,MAAM,CAAC;QACrB,MAAM,KAAK,GAA6B,CAAC,EAAE,CAAC,yCAA8B,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QAC5F,MAAM,CAAC,IAAA,uDAA4B,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uDAAuD,EAAE,GAAG,EAAE;QAC/D,MAAM,KAAK,GAAG,MAAM,CAAC;QACrB,MAAM,KAAK,GAA6B,CAAC,EAAE,CAAC,yCAA8B,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAClG,qDAA0B,CAAC,yCAA8B,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAW,EAAE,GAAW,EAAE,EAAE,CAAC,4BAA4B,GAAG,EAAE,CAAC;QACtI,MAAM,CAAC,IAAA,uDAA4B,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC;IAC3F,CAAC,CAAC,CAAC;IAEH;;;;;UAKM;AACR,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-obj-key-pipe.util.spec.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const pip_obj_key_pipe_util_1 = require("./pip-obj-key-pipe.util");
|
|
4
|
-
describe('| DyFM_objKey_pipeTransform', () => {
|
|
5
|
-
it('| should return an array of keys when an object is provided', () => {
|
|
6
|
-
const input = { a: 1, b: 2, c: 3 };
|
|
7
|
-
const expectedOutput = ['a', 'b', 'c'];
|
|
8
|
-
expect((0, pip_obj_key_pipe_util_1.DyFM_objKey_pipeTransform)(input)).toEqual(expectedOutput);
|
|
9
|
-
});
|
|
10
|
-
it('| should return an empty array when null is provided', () => {
|
|
11
|
-
const input = null;
|
|
12
|
-
const expectedOutput = [];
|
|
13
|
-
expect((0, pip_obj_key_pipe_util_1.DyFM_objKey_pipeTransform)(input)).toEqual(expectedOutput);
|
|
14
|
-
});
|
|
15
|
-
it('| should return an empty array when undefined is provided', () => {
|
|
16
|
-
const input = undefined;
|
|
17
|
-
const expectedOutput = [];
|
|
18
|
-
expect((0, pip_obj_key_pipe_util_1.DyFM_objKey_pipeTransform)(input)).toEqual(expectedOutput);
|
|
19
|
-
});
|
|
20
|
-
it('| should return an empty array when an empty object is provided', () => {
|
|
21
|
-
const input = {};
|
|
22
|
-
const expectedOutput = [];
|
|
23
|
-
expect((0, pip_obj_key_pipe_util_1.DyFM_objKey_pipeTransform)(input)).toEqual(expectedOutput);
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
//# sourceMappingURL=pip-obj-key-pipe.util.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-obj-key-pipe.util.spec.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.spec.ts"],"names":[],"mappings":";;AACA,mEAAoE;AAEpE,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC3C,EAAE,CAAC,6DAA6D,EAAE,GAAG,EAAE;QACrE,MAAM,KAAK,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QACnC,MAAM,cAAc,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QACvC,MAAM,CAAC,IAAA,iDAAyB,EAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sDAAsD,EAAE,GAAG,EAAE;QAC9D,MAAM,KAAK,GAAG,IAAI,CAAC;QACnB,MAAM,cAAc,GAAa,EAAE,CAAC;QACpC,MAAM,CAAC,IAAA,iDAAyB,EAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2DAA2D,EAAE,GAAG,EAAE;QACnE,MAAM,KAAK,GAAG,SAAS,CAAC;QACxB,MAAM,cAAc,GAAa,EAAE,CAAC;QACpC,MAAM,CAAC,IAAA,iDAAyB,EAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iEAAiE,EAAE,GAAG,EAAE;QACzE,MAAM,KAAK,GAAG,EAAE,CAAC;QACjB,MAAM,cAAc,GAAa,EAAE,CAAC;QACpC,MAAM,CAAC,IAAA,iDAAyB,EAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-range-pipe.util.spec.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-range-pipe.util.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const pip_range_pipe_setting_enum_1 = require("../../_enums/pip-range-pipe-setting.enum");
|
|
4
|
-
const pip_range_pipe_util_1 = require("./pip-range-pipe.util");
|
|
5
|
-
describe('| DyFM_range_pipeTransform', () => {
|
|
6
|
-
const mockMultiPipeTransform = (value, multiPipes) => {
|
|
7
|
-
return value.toString();
|
|
8
|
-
};
|
|
9
|
-
beforeAll(() => {
|
|
10
|
-
spyOn(console, 'warn');
|
|
11
|
-
});
|
|
12
|
-
it('| should return the average of from and to when setting is avg or average', () => {
|
|
13
|
-
const value = { from: 10, to: 20, isRange: true };
|
|
14
|
-
expect((0, pip_range_pipe_util_1.DyFM_range_pipeTransform)(value, pip_range_pipe_setting_enum_1.DyFM_RangePipe_Setting.avg)).toBe(15);
|
|
15
|
-
expect((0, pip_range_pipe_util_1.DyFM_range_pipeTransform)(value, pip_range_pipe_setting_enum_1.DyFM_RangePipe_Setting.average)).toBe(15);
|
|
16
|
-
});
|
|
17
|
-
it('| should return from when setting is min or from', () => {
|
|
18
|
-
const value = { from: 10, to: 20, isRange: true };
|
|
19
|
-
expect((0, pip_range_pipe_util_1.DyFM_range_pipeTransform)(value, pip_range_pipe_setting_enum_1.DyFM_RangePipe_Setting.min)).toBe(10);
|
|
20
|
-
expect((0, pip_range_pipe_util_1.DyFM_range_pipeTransform)(value, pip_range_pipe_setting_enum_1.DyFM_RangePipe_Setting.from)).toBe(10);
|
|
21
|
-
});
|
|
22
|
-
it('| should return to when setting is max or to', () => {
|
|
23
|
-
const value = { from: 10, to: 20, isRange: true };
|
|
24
|
-
expect((0, pip_range_pipe_util_1.DyFM_range_pipeTransform)(value, pip_range_pipe_setting_enum_1.DyFM_RangePipe_Setting.max)).toBe(20);
|
|
25
|
-
expect((0, pip_range_pipe_util_1.DyFM_range_pipeTransform)(value, pip_range_pipe_setting_enum_1.DyFM_RangePipe_Setting.to)).toBe(20);
|
|
26
|
-
});
|
|
27
|
-
it('| should return formatted string when setting is both or fromTo', () => {
|
|
28
|
-
const value = { from: 10, to: 20, isRange: true };
|
|
29
|
-
expect((0, pip_range_pipe_util_1.DyFM_range_pipeTransform)(value, pip_range_pipe_setting_enum_1.DyFM_RangePipe_Setting.both)).toBe('10 - 20');
|
|
30
|
-
expect((0, pip_range_pipe_util_1.DyFM_range_pipeTransform)(value, pip_range_pipe_setting_enum_1.DyFM_RangePipe_Setting.fromTo)).toBe('10 - 20');
|
|
31
|
-
});
|
|
32
|
-
/* it('| should return transformed value using multiPipes when setting is both or fromTo and multiPipes are provided', () => {
|
|
33
|
-
const value: DyFM_RangeValue = { from: 10, to: 20, isRange: true };
|
|
34
|
-
const multiPipes: DyFM_MultiPipe_Setting[] = [{} as DyFM_MultiPipe_Setting];
|
|
35
|
-
spyOn(DyFM_multiPipe_pipeTransform, 'call').and.callFake(mockMultiPipeTransform);
|
|
36
|
-
|
|
37
|
-
expect(DyFM_range_pipeTransform(value, DyFM_RangePipe_Setting.both, multiPipes)).toBe('10 - 20');
|
|
38
|
-
expect(DyFM_range_pipeTransform(value, DyFM_RangePipe_Setting.fromTo, multiPipes)).toBe('10 - 20');
|
|
39
|
-
}); */
|
|
40
|
-
it('| should return the original value if requirements are not met', () => {
|
|
41
|
-
const value = { from: 10, to: 20, isRange: false };
|
|
42
|
-
expect((0, pip_range_pipe_util_1.DyFM_range_pipeTransform)(value, pip_range_pipe_setting_enum_1.DyFM_RangePipe_Setting.avg)).toBe(value);
|
|
43
|
-
expect(console.warn).toHaveBeenCalled();
|
|
44
|
-
});
|
|
45
|
-
it('| should return the original value for an unknown setting', () => {
|
|
46
|
-
const value = { from: 10, to: 20, isRange: true };
|
|
47
|
-
expect((0, pip_range_pipe_util_1.DyFM_range_pipeTransform)(value, 'unknown')).toBe(value);
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
//# sourceMappingURL=pip-range-pipe.util.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-range-pipe.util.spec.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-range-pipe.util.spec.ts"],"names":[],"mappings":";;AAEA,0FAAkF;AAElF,+DAAiE;AAEjE,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IAC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AwB,EAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-region-pipe.util.spec.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-region-pipe.util.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const pip_region_pipe_util_1 = require("./pip-region-pipe.util");
|
|
4
|
-
const loc_country_isos_const_1 = require("../../../location/_collections/loc-country-isos.const");
|
|
5
|
-
describe('| DyFM_region_pipeTransform', () => {
|
|
6
|
-
it('| should return the region when a valid country ISO is provided', () => {
|
|
7
|
-
const validCountryISO = loc_country_isos_const_1.DyFM_countryISOs[0].iso2;
|
|
8
|
-
const expectedRegion = loc_country_isos_const_1.DyFM_countryISOs[0].region;
|
|
9
|
-
const result = (0, pip_region_pipe_util_1.DyFM_region_pipeTransform)(validCountryISO);
|
|
10
|
-
expect(result).toBe(expectedRegion);
|
|
11
|
-
});
|
|
12
|
-
it('| should return the input country ISO when an invalid country ISO is provided', () => {
|
|
13
|
-
const invalidCountryISO = 'XX';
|
|
14
|
-
const result = (0, pip_region_pipe_util_1.DyFM_region_pipeTransform)(invalidCountryISO);
|
|
15
|
-
expect(result).toBe(invalidCountryISO);
|
|
16
|
-
});
|
|
17
|
-
it('| should return the input country ISO when the country ISO is not found', () => {
|
|
18
|
-
const notFoundCountryISO = 'ZZ';
|
|
19
|
-
const result = (0, pip_region_pipe_util_1.DyFM_region_pipeTransform)(notFoundCountryISO);
|
|
20
|
-
expect(result).toBe(notFoundCountryISO);
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=pip-region-pipe.util.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-region-pipe.util.spec.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-region-pipe.util.spec.ts"],"names":[],"mappings":";;AACA,iEAAmE;AACnE,kGAAyF;AAGzF,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC3C,EAAE,CAAC,iEAAiE,EAAE,GAAG,EAAE;QACzE,MAAM,eAAe,GAAG,yCAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACjD,MAAM,cAAc,GAAG,yCAAgB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;QAElD,MAAM,MAAM,GAAG,IAAA,gDAAyB,EAAC,eAAe,CAAC,CAAC;QAE1D,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+EAA+E,EAAE,GAAG,EAAE;QACvF,MAAM,iBAAiB,GAAG,IAAI,CAAC;QAE/B,MAAM,MAAM,GAAG,IAAA,gDAAyB,EAAC,iBAAiB,CAAC,CAAC;QAE5D,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yEAAyE,EAAE,GAAG,EAAE;QACjF,MAAM,kBAAkB,GAAG,IAAI,CAAC;QAEhC,MAAM,MAAM,GAAG,IAAA,gDAAyB,EAAC,kBAAkB,CAAC,CAAC;QAE7D,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-replace-pipe.util.spec.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-replace-pipe.util.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const pip_replace_pipe_util_1 = require("./pip-replace-pipe.util");
|
|
4
|
-
describe('| DyFM_replace_pipeTransform', () => {
|
|
5
|
-
it('| should replace all occurrences of "from" with "to" in the given string', () => {
|
|
6
|
-
const result = (0, pip_replace_pipe_util_1.DyFM_replace_pipeTransform)('hello world', 'world', 'there');
|
|
7
|
-
expect(result).toBe('hello there');
|
|
8
|
-
});
|
|
9
|
-
it('| should return the original string if "from" is not found', () => {
|
|
10
|
-
const result = (0, pip_replace_pipe_util_1.DyFM_replace_pipeTransform)('hello world', 'planet', 'there');
|
|
11
|
-
expect(result).toBe('hello world');
|
|
12
|
-
});
|
|
13
|
-
it('| should handle empty "from" and "to" strings', () => {
|
|
14
|
-
const result = (0, pip_replace_pipe_util_1.DyFM_replace_pipeTransform)('hello world', '', '');
|
|
15
|
-
expect(result).toBe('hello world');
|
|
16
|
-
});
|
|
17
|
-
it('| should handle empty "value" string', () => {
|
|
18
|
-
const result = (0, pip_replace_pipe_util_1.DyFM_replace_pipeTransform)('', 'world', 'there');
|
|
19
|
-
expect(result).toBe('');
|
|
20
|
-
});
|
|
21
|
-
it('| should handle null "value" gracefully', () => {
|
|
22
|
-
const result = (0, pip_replace_pipe_util_1.DyFM_replace_pipeTransform)(null, 'world', 'there');
|
|
23
|
-
expect(result).toBeNull();
|
|
24
|
-
});
|
|
25
|
-
it('| should handle undefined "value" gracefully', () => {
|
|
26
|
-
const result = (0, pip_replace_pipe_util_1.DyFM_replace_pipeTransform)(undefined, 'world', 'there');
|
|
27
|
-
expect(result).toBeUndefined();
|
|
28
|
-
});
|
|
29
|
-
it('| should replace all occurrences when "from" is a substring of "value"', () => {
|
|
30
|
-
const result = (0, pip_replace_pipe_util_1.DyFM_replace_pipeTransform)('ababab', 'ab', 'cd');
|
|
31
|
-
expect(result).toBe('cdcdcd');
|
|
32
|
-
});
|
|
33
|
-
it('| should return the original string if "from" and "to" are the same', () => {
|
|
34
|
-
const result = (0, pip_replace_pipe_util_1.DyFM_replace_pipeTransform)('hello world', 'world', 'world');
|
|
35
|
-
expect(result).toBe('hello world');
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=pip-replace-pipe.util.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-replace-pipe.util.spec.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-replace-pipe.util.spec.ts"],"names":[],"mappings":";;AACA,mEAAqE;AAErE,QAAQ,CAAC,8BAA8B,EAAE,GAAG,EAAE;IAC5C,EAAE,CAAC,0EAA0E,EAAE,GAAG,EAAE;QAClF,MAAM,MAAM,GAAG,IAAA,kDAA0B,EAAC,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAC3E,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4DAA4D,EAAE,GAAG,EAAE;QACpE,MAAM,MAAM,GAAG,IAAA,kDAA0B,EAAC,aAAa,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC5E,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;QACvD,MAAM,MAAM,GAAG,IAAA,kDAA0B,EAAC,aAAa,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QACjE,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sCAAsC,EAAE,GAAG,EAAE;QAC9C,MAAM,MAAM,GAAG,IAAA,kDAA0B,EAAC,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAChE,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yCAAyC,EAAE,GAAG,EAAE;QACjD,MAAM,MAAM,GAAG,IAAA,kDAA0B,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAClE,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAC;IAC5B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACtD,MAAM,MAAM,GAAG,IAAA,kDAA0B,EAAC,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QACvE,MAAM,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wEAAwE,EAAE,GAAG,EAAE;QAChF,MAAM,MAAM,GAAG,IAAA,kDAA0B,EAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAChE,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qEAAqE,EAAE,GAAG,EAAE;QAC7E,MAAM,MAAM,GAAG,IAAA,kDAA0B,EAAC,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAC3E,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-slider-pipe.util.spec.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-slider-pipe.util.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const pip_slider_pipe_util_1 = require("./pip-slider-pipe.util");
|
|
4
|
-
const range_value_control_model_1 = require("../../../../_models/control-models/range-value.control-model");
|
|
5
|
-
describe('| DyFM_slider_pipeTransform', () => {
|
|
6
|
-
it('| should return the string representation of a DyFM_RangeValue instance', () => {
|
|
7
|
-
const rangeValue = new range_value_control_model_1.DyFM_RangeValue(1, 10);
|
|
8
|
-
spyOn(rangeValue, 'toString').and.returnValue('1-10');
|
|
9
|
-
expect((0, pip_slider_pipe_util_1.DyFM_slider_pipeTransform)(rangeValue)).toBe('1-10');
|
|
10
|
-
});
|
|
11
|
-
it('| should return the string representation of a number', () => {
|
|
12
|
-
const numberValue = 42;
|
|
13
|
-
expect((0, pip_slider_pipe_util_1.DyFM_slider_pipeTransform)(numberValue)).toBe('42');
|
|
14
|
-
});
|
|
15
|
-
it('| should return the string as is if the input is a string', () => {
|
|
16
|
-
const stringValue = 'test';
|
|
17
|
-
expect((0, pip_slider_pipe_util_1.DyFM_slider_pipeTransform)(stringValue)).toBe('test');
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
//# sourceMappingURL=pip-slider-pipe.util.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-slider-pipe.util.spec.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-slider-pipe.util.spec.ts"],"names":[],"mappings":";;AACA,iEAAmE;AACnE,4GAA+F;AAE/F,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC3C,EAAE,CAAC,yEAAyE,EAAE,GAAG,EAAE;QACjF,MAAM,UAAU,GAAG,IAAI,2CAAe,CAAS,CAAC,EAAE,EAAE,CAAC,CAAC;QACtD,KAAK,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QACtD,MAAM,CAAC,IAAA,gDAAyB,EAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uDAAuD,EAAE,GAAG,EAAE;QAC/D,MAAM,WAAW,GAAG,EAAE,CAAC;QACvB,MAAM,CAAC,IAAA,gDAAyB,EAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2DAA2D,EAAE,GAAG,EAAE;QACnE,MAAM,WAAW,GAAG,MAAM,CAAC;QAC3B,MAAM,CAAC,IAAA,gDAAyB,EAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-smart-replace-pipe.util.spec.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const log_util_1 = require("../../../../_collections/utils/log.util");
|
|
4
|
-
const pip_smart_replace_pipe_util_1 = require("./pip-smart-replace-pipe.util");
|
|
5
|
-
describe('| DyFM_smartReplace_pipeTransform', () => {
|
|
6
|
-
it('| should return the original value if replacer is not defined', () => {
|
|
7
|
-
const result = (0, pip_smart_replace_pipe_util_1.DyFM_smartReplace_pipeTransform)('Hello, {name}!', null);
|
|
8
|
-
expect(result).toBe('Hello, {name}!');
|
|
9
|
-
});
|
|
10
|
-
it('| should replace keys with values from replacer', () => {
|
|
11
|
-
const replacer = { name: { value: 'World', pipes: [] } };
|
|
12
|
-
spyOn(log_util_1.DyFM_Log, 'warn');
|
|
13
|
-
const result = (0, pip_smart_replace_pipe_util_1.DyFM_smartReplace_pipeTransform)('Hello, {name}!', replacer);
|
|
14
|
-
expect(result).toBe('Hello, World!');
|
|
15
|
-
expect(log_util_1.DyFM_Log.warn).not.toHaveBeenCalled();
|
|
16
|
-
});
|
|
17
|
-
it('| should warn if replacer key has no pipes', () => {
|
|
18
|
-
const replacer = { name: { value: 'World' } };
|
|
19
|
-
spyOn(log_util_1.DyFM_Log, 'warn');
|
|
20
|
-
const result = (0, pip_smart_replace_pipe_util_1.DyFM_smartReplace_pipeTransform)('Hello, {name}!', replacer);
|
|
21
|
-
expect(result).toBeUndefined();
|
|
22
|
-
expect(log_util_1.DyFM_Log.warn).toHaveBeenCalledWith('DYNAMO WARNING: ' +
|
|
23
|
-
'\nSmartReplacePipe: replaceTo[name].multiPipe is not defined...', '\n\n', jasmine.any(Error));
|
|
24
|
-
});
|
|
25
|
-
it('| should warn if replacer key pipes is not an array', () => {
|
|
26
|
-
const replacer = { name: { value: 'World', pipes: 'not-an-array' } };
|
|
27
|
-
spyOn(log_util_1.DyFM_Log, 'warn');
|
|
28
|
-
const result = (0, pip_smart_replace_pipe_util_1.DyFM_smartReplace_pipeTransform)('Hello, {name}!', replacer);
|
|
29
|
-
expect(result).toBeUndefined();
|
|
30
|
-
expect(log_util_1.DyFM_Log.warn).toHaveBeenCalledWith('DYNAMO WARNING: ' +
|
|
31
|
-
'\nSmartReplacePipe: replaceTo[name].multiPipe is not an array...', '\n\n', jasmine.any(Error));
|
|
32
|
-
});
|
|
33
|
-
/* it('| should apply multiPipes if provided', () => {
|
|
34
|
-
const replacer = { name: 'World' };
|
|
35
|
-
const multiPipes: DyFM_MultiPipe_Setting[] = [];
|
|
36
|
-
spyOn(DyFM_multiPipe_pipeTransform).and.callThrough();
|
|
37
|
-
const result = DyFM_smartReplace_pipeTransform('Hello, {name}!', replacer, multiPipes);
|
|
38
|
-
expect(result).toBe('Hello, World!');
|
|
39
|
-
expect(DyFM_multiPipe_pipeTransform).toHaveBeenCalledWith('World', multiPipes);
|
|
40
|
-
}); */
|
|
41
|
-
it('| should handle multiple replacements', () => {
|
|
42
|
-
const replacer = {
|
|
43
|
-
firstName: { value: 'John', pipes: [] },
|
|
44
|
-
lastName: { value: 'Doe', pipes: [] }
|
|
45
|
-
};
|
|
46
|
-
const result = (0, pip_smart_replace_pipe_util_1.DyFM_smartReplace_pipeTransform)('Hello, {firstName} {lastName}!', replacer);
|
|
47
|
-
expect(result).toBe('Hello, John Doe!');
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
//# sourceMappingURL=pip-smart-replace-pipe.util.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pip-smart-replace-pipe.util.spec.js","sourceRoot":"","sources":["../../../../../src/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.spec.ts"],"names":[],"mappings":";;AACA,sEAAmE;AACnE,+EAAgF;AAEhF,QAAQ,CAAC,mCAAmC,EAAE,GAAG,EAAE;IACjD,EAAE,CAAC,+DAA+D,EAAE,GAAG,EAAE;QACvE,MAAM,MAAM,GAAG,IAAA,6DAA+B,EAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;QACvE,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;QACzD,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC;QACzD,KAAK,CAAC,mBAAQ,EAAE,MAAM,CAAC,CAAC;QACxB,MAAM,MAAM,GAAG,IAAA,6DAA+B,EAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;QAC3E,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACrC,MAAM,CAAC,mBAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC;IAC/C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QACpD,MAAM,QA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+B,EAAC,gCAAgC,EAAE,QAAQ,CAAC,CAAC;QAC3F,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sck-client-params.control-model.spec.d.ts","sourceRoot":"","sources":["../../../../src/_modules/socket/_models/sck-client-params.control-model.spec.ts"],"names":[],"mappings":""}
|