@fincity/kirun-js 2.0.0 → 2.0.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/__tests__/engine/runtime/KIRuntimeUndefinedParamTest.ts +19 -22
- 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.map +1 -1
- package/package.json +4 -4
- package/src/engine/model/FunctionDefinition.ts +2 -1
- package/tsconfig.json +6 -2
|
@@ -79,17 +79,13 @@ test('KIRuntime Undefined and null param type with varargs', async () => {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
new
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
expect(fo.allResults()).toStrictEqual([]);
|
|
90
|
-
} catch (e: any) {
|
|
91
|
-
console.error(e);
|
|
92
|
-
}
|
|
82
|
+
var fo: FunctionOutput = await new KIRuntime(fd).execute(
|
|
83
|
+
new FunctionExecutionParameters(
|
|
84
|
+
new HybridRepository(new KIRunFunctionRepository(), new TestRepository()),
|
|
85
|
+
new KIRunSchemaRepository(),
|
|
86
|
+
).setArguments(new Map()),
|
|
87
|
+
);
|
|
88
|
+
expect(fo.allResults()[0].getResult().size).toBe(0);
|
|
93
89
|
});
|
|
94
90
|
|
|
95
91
|
test('KIRuntime Undefined and null param type without varargs', async () => {
|
|
@@ -123,15 +119,16 @@ test('KIRuntime Undefined and null param type without varargs', async () => {
|
|
|
123
119
|
}
|
|
124
120
|
}
|
|
125
121
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
new
|
|
129
|
-
new
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
122
|
+
expect(
|
|
123
|
+
(
|
|
124
|
+
await new KIRuntime(fd).execute(
|
|
125
|
+
new FunctionExecutionParameters(
|
|
126
|
+
new HybridRepository(new KIRunFunctionRepository(), new TestRepository()),
|
|
127
|
+
new KIRunSchemaRepository(),
|
|
128
|
+
).setArguments(new Map()),
|
|
129
|
+
)
|
|
130
|
+
)
|
|
131
|
+
.allResults()[0]
|
|
132
|
+
.getResult().size,
|
|
133
|
+
).toBe(0);
|
|
137
134
|
});
|