aotrautils-srv 0.0.363 → 0.0.365

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 (08/12/2022-00:59:58)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (08/12/2022-23:35:06)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -488,7 +488,7 @@ window.aotestMethods.registerScenarioInfos=function(scenariiListParam, name, sce
488
488
  // UNUSED AND BOGUS :
489
489
  // TODO : FIXME : On today, tracking is deactivated for aotest, because random unresolved bugs occur :
490
490
  //
491
- ///*private*/window.aotestMethods.trackFunction=function(func, args){
491
+ ///*private*/window.aotestMethods.trackFunction=function(func, methodArgs){
492
492
  //
493
493
  // // DBG
494
494
  // console.log("!!! func:",func);
@@ -505,7 +505,7 @@ window.aotestMethods.registerScenarioInfos=function(scenariiListParam, name, sce
505
505
  // // If we are not in a running test scenario execution context, then we skip
506
506
  // // tracking :
507
507
  // if(!currentRunningScenario)
508
- // return func.apply(callerObject, args);
508
+ // return func.apply(callerObject, methodArgs);
509
509
  //
510
510
  // var functionName=getFunctionName(func);
511
511
  // // UNUSED attribute :
@@ -523,7 +523,7 @@ window.aotestMethods.registerScenarioInfos=function(scenariiListParam, name, sce
523
523
  // currentRunningScenario.throwsCounts[functionName]=0;
524
524
  // currentRunningScenario.callsCounts[functionName]++;
525
525
  // try {
526
- // functionResult=func.apply(callerObject, args);
526
+ // functionResult=func.apply(callerObject, methodArgs);
527
527
  // } catch (e){
528
528
  // currentRunningScenario.throwsCounts[functionName]++;
529
529
  // throw e;
@@ -762,7 +762,7 @@ aotest.run=function(testName=null,scenarioName=null){
762
762
  // Functions calls counting :
763
763
  var isChosenScenarioParamArray=isArray(chosenScenarioParam);
764
764
 
765
- if(!isChosenScenarioParamArray) functionParameters=chosenScenarioParam.args;
765
+ if(!isChosenScenarioParamArray) functionParameters=chosenScenarioParam.methodArgs;
766
766
  else functionParameters=chosenScenarioParam[0];
767
767
 
768
768
  // CAUTIOM : At this point, functionParameters is an associative array (parameterName : parameterValue)
@@ -1034,7 +1034,7 @@ aotest.run=function(testName=null,scenarioName=null){
1034
1034
 
1035
1035
  // At this point, we already have applied the method to the input object, in order to compare it with the output object, if necessary.
1036
1036
  let actualInstanceFlat=(actualInstance!=null?getAsFlatStructure(actualInstance,true):null); // actual instance (after execution)
1037
- let actualArgsFlat=(functionParametersPopulated!=null?getAsFlatStructure(functionParametersPopulated,true):null); // actual args (after execution)
1037
+ let actualArgsFlat=(functionParametersPopulated!=null?getAsFlatStructure(functionParametersPopulated,true):null); // actual arguments (after execution)
1038
1038
 
1039
1039
 
1040
1040
  let afterInstanceFlat=null;
@@ -1042,11 +1042,11 @@ aotest.run=function(testName=null,scenarioName=null){
1042
1042
  let afterResultFlat=null;
1043
1043
  if(chosenScenarioParam.after.alreadyFlat){
1044
1044
  afterInstanceFlat=chosenScenarioParam.after.afterInstance; // EXPECTED instance
1045
- afterArgsFlat=chosenScenarioParam.after.args; // EXPECTED args
1045
+ afterArgsFlat=chosenScenarioParam.after.methodArgs; // EXPECTED arguments
1046
1046
  afterResultFlat=functionResult; // actual result
1047
1047
  }else{
1048
1048
  afterInstanceFlat=getAsFlatStructure(chosenScenarioParam.after.afterInstance,true); // EXPECTED instance
1049
- afterArgsFlat=getAsFlatStructure(chosenScenarioParam.after.args,true); // EXPECTED args
1049
+ afterArgsFlat=getAsFlatStructure(chosenScenarioParam.after.methodArgs,true); // EXPECTED arguments
1050
1050
  afterResultFlat=getAsFlatStructure(functionResult,true); // actual result (after execution)
1051
1051
  }
1052
1052
 
@@ -4831,7 +4831,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4831
4831
 
4832
4832
 
4833
4833
 
4834
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (08/12/2022-00:59:58)»*/
4834
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (08/12/2022-23:35:06)»*/
4835
4835
  /*-----------------------------------------------------------------------------*/
4836
4836
 
4837
4837
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.363",
3
+ "version": "0.0.365",
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)",