aotrautils-srv 0.0.361 → 0.0.363
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (08/12/2022-00:59:58)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -733,7 +733,7 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
|
733
733
|
|
|
734
734
|
if(window.aotestAllTestsManager.isEmpty()){
|
|
735
735
|
// TRACE
|
|
736
|
-
console.log("WARN : No registered
|
|
736
|
+
console.log("WARN : No registered javascript tests to run. Aborting.");
|
|
737
737
|
return testsResultsObj;
|
|
738
738
|
}
|
|
739
739
|
|
|
@@ -765,6 +765,8 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
|
765
765
|
if(!isChosenScenarioParamArray) functionParameters=chosenScenarioParam.args;
|
|
766
766
|
else functionParameters=chosenScenarioParam[0];
|
|
767
767
|
|
|
768
|
+
// CAUTIOM : At this point, functionParameters is an associative array (parameterName : parameterValue)
|
|
769
|
+
|
|
768
770
|
let mainInstance=nonull(chosenTestParam.mainInstance,null); // To ensure we have null and not undefined
|
|
769
771
|
|
|
770
772
|
// CAUTION : functionParameters can be null, meaning we want no execution of
|
|
@@ -773,9 +775,9 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
|
773
775
|
var functionParametersPopulated=null; // ...if this array is null, then we don't want to execute the function !!
|
|
774
776
|
if(functionParameters){
|
|
775
777
|
functionParametersPopulated=new Array();
|
|
778
|
+
|
|
776
779
|
// We populate dummies here :
|
|
777
|
-
|
|
778
|
-
var fp=functionParameters[i];
|
|
780
|
+
foreach(functionParameters,(fp)=>{
|
|
779
781
|
if(fp){
|
|
780
782
|
if(fp["dummy"]){
|
|
781
783
|
var dummyName=fp["dummy"];
|
|
@@ -787,7 +789,9 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
|
787
789
|
} else {
|
|
788
790
|
functionParametersPopulated.push(null);
|
|
789
791
|
}
|
|
790
|
-
}
|
|
792
|
+
});
|
|
793
|
+
|
|
794
|
+
|
|
791
795
|
}
|
|
792
796
|
|
|
793
797
|
|
|
@@ -4827,7 +4831,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4827
4831
|
|
|
4828
4832
|
|
|
4829
4833
|
|
|
4830
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
|
4834
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (08/12/2022-00:59:58)»*/
|
|
4831
4835
|
/*-----------------------------------------------------------------------------*/
|
|
4832
4836
|
|
|
4833
4837
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.363",
|
|
4
4
|
"main": "aotrautils-srv.build.js",
|
|
5
5
|
"description": "A library for vanilla javascript utils (server-side) used in aotra javascript CMS",
|
|
6
6
|
"author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",
|