@fincity/kirun-js 2.8.5 → 2.9.0
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/__tests__/engine/function/system/date/FromDateStringTest.ts +9 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/engine/function/system/GenerateEvent.ts +23 -21
- package/src/engine/function/system/If.ts +2 -3
- package/src/engine/function/system/Print.ts +2 -3
- package/src/engine/function/system/Wait.ts +2 -3
- package/src/engine/function/system/array/ArrayFunctionRepository.ts +7 -9
- package/src/engine/function/system/array/Join.ts +29 -28
- package/src/engine/function/system/context/Create.ts +20 -22
- package/src/engine/function/system/context/Get.ts +19 -19
- package/src/engine/function/system/context/SetFunction.ts +17 -14
- package/src/engine/function/system/date/DateFunctionRepository.ts +6 -8
- package/src/engine/function/system/date/EpochToTimestamp.ts +1 -1
- package/src/engine/function/system/date/IsValidISODate.ts +4 -6
- package/src/engine/function/system/loop/Break.ts +7 -7
- package/src/engine/function/system/loop/CountLoop.ts +13 -14
- package/src/engine/function/system/loop/ForEachLoop.ts +18 -19
- package/src/engine/function/system/loop/RangeLoop.ts +68 -69
- package/src/engine/function/system/math/Add.ts +11 -9
- package/src/engine/function/system/math/GenericMathFunction.ts +13 -13
- package/src/engine/function/system/math/Hypotenuse.ts +2 -2
- package/src/engine/function/system/math/MathFunctionRepository.ts +107 -90
- package/src/engine/function/system/math/Maximum.ts +12 -11
- package/src/engine/function/system/math/Minimum.ts +12 -11
- package/src/engine/function/system/math/Random.ts +2 -2
- package/src/engine/function/system/object/AbstractObjectFunction.ts +1 -2
- package/src/engine/function/system/object/ObjectConvert.ts +26 -26
- package/src/engine/function/system/object/ObjectDeleteKey.ts +1 -2
- package/src/engine/function/system/object/ObjectFunctionRepository.ts +18 -14
- package/src/engine/function/system/string/Concatenate.ts +8 -7
- package/src/engine/function/system/string/Matches.ts +2 -2
- package/src/engine/function/system/string/Reverse.ts +2 -2
- package/src/engine/function/system/string/Split.ts +16 -15
- package/src/engine/function/system/string/StringFunctionRepository.ts +6 -8
- package/src/engine/function/system/string/ToString.ts +9 -8
- package/src/engine/json/schema/Schema.ts +17 -0
- package/src/engine/repository/KIRunFunctionRepository.ts +47 -39
- package/src/engine/repository/KIRunSchemaRepository.ts +75 -70
- package/src/engine/util/duplicate.ts +1 -1
- package/tsconfig.json +4 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getDateTime } from '../../../../../src/engine/function/system/date/common';
|
|
1
2
|
import { FromDateString } from '../../../../../src/engine/function/system/date/FromDateString';
|
|
2
3
|
import { KIRunFunctionRepository } from '../../../../../src/engine/repository/KIRunFunctionRepository';
|
|
3
4
|
import { KIRunSchemaRepository } from '../../../../../src/engine/repository/KIRunSchemaRepository';
|
|
@@ -67,6 +68,13 @@ describe('FromDateString', () => {
|
|
|
67
68
|
.getResult()
|
|
68
69
|
.get(FromDateString.EVENT_RESULT_NAME);
|
|
69
70
|
|
|
70
|
-
|
|
71
|
+
let d: Date = new Date();
|
|
72
|
+
d.setDate(3);
|
|
73
|
+
d.setHours(0);
|
|
74
|
+
d.setMinutes(0);
|
|
75
|
+
d.setSeconds(12);
|
|
76
|
+
d.setMilliseconds(123);
|
|
77
|
+
|
|
78
|
+
expect(new Date(result).getTime()).toEqual(d.getTime());
|
|
71
79
|
});
|
|
72
80
|
});
|