aotrautils-srv 0.0.538 → 0.0.540
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 (22/07/2023-03:18:10)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -460,7 +460,7 @@ window.aotestMethods.getScenariiInTest=function(test){
|
|
|
460
460
|
/*private*/window.aotestMethods.doForAllTestsByType=function(allTestsByType, doOnIteration, filter=null, mustTerminate=null){
|
|
461
461
|
|
|
462
462
|
const loopResultI=foreach(allTestsByType,(testsByFunction,functionName)=>{
|
|
463
|
-
const loopResultJ=foreach(testsByFunction,(test,executionCoupleName)=>{
|
|
463
|
+
const loopResultJ=foreach(testsByFunction,(test,executionCoupleName)=>{ // (execution couple IS test)
|
|
464
464
|
|
|
465
465
|
const scenarii=aotestMethods.getScenariiInTest(test)
|
|
466
466
|
const loopResultK=foreach(scenarii,(scenario, scenarioName)=>{
|
|
@@ -520,7 +520,7 @@ window.aotestMethods.isScenarioName=function(scenarioName){
|
|
|
520
520
|
// (a little utility function for the unitary tests framework aotest :)
|
|
521
521
|
window.aotestMethods.aotratestKeyInPredefinedParameters=function(key){
|
|
522
522
|
return contains(
|
|
523
|
-
["activateAsserts","currentRunningScenario","name","dummies","prerequisite","clean","
|
|
523
|
+
["activateAsserts","currentRunningScenario","name","dummies","prerequisite","clean","functionName",
|
|
524
524
|
"mainInstance","nature","isEmpty"],
|
|
525
525
|
key);
|
|
526
526
|
};
|
|
@@ -612,12 +612,11 @@ window.aotest=function(parameters,functionDefinition=null,ignoreTest=false,CLASS
|
|
|
612
612
|
if(ignoreTest)
|
|
613
613
|
return functionDefinition;
|
|
614
614
|
|
|
615
|
-
|
|
615
|
+
const DEBUG_TRACE=true;
|
|
616
616
|
|
|
617
617
|
// Parameters :
|
|
618
618
|
// Tested function/method name :
|
|
619
|
-
|
|
620
|
-
const functionNameParam=parameters.func;
|
|
619
|
+
const functionNameParam=parameters.functionName;
|
|
621
620
|
|
|
622
621
|
|
|
623
622
|
if(!functionDefinition){
|
|
@@ -654,7 +653,7 @@ window.aotest=function(parameters,functionDefinition=null,ignoreTest=false,CLASS
|
|
|
654
653
|
console.log("ERROR : No function definition found for function named «"+nonull(functionNameParam, "<unknown name function>")+"», aborting test registration.");
|
|
655
654
|
return null;
|
|
656
655
|
}
|
|
657
|
-
functionName=getFunctionName(functionDefinition);
|
|
656
|
+
let functionName=getFunctionName(functionDefinition);
|
|
658
657
|
|
|
659
658
|
// Current method context initialization :
|
|
660
659
|
// Test parameters population :
|
|
@@ -668,9 +667,9 @@ window.aotest=function(parameters,functionDefinition=null,ignoreTest=false,CLASS
|
|
|
668
667
|
currentTest.name=nameParam;
|
|
669
668
|
|
|
670
669
|
// (optional) Func (ie. function name) :
|
|
671
|
-
let func=parameters["
|
|
670
|
+
let func=parameters["functionName"];
|
|
672
671
|
if(!!func /*(forced to boolean)*/){
|
|
673
|
-
currentTest["
|
|
672
|
+
currentTest["functionName"]=func;
|
|
674
673
|
}
|
|
675
674
|
|
|
676
675
|
// We add to the global context :
|
|
@@ -4931,7 +4930,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4931
4930
|
|
|
4932
4931
|
|
|
4933
4932
|
|
|
4934
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
|
4933
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (22/07/2023-03:18:10)»*/
|
|
4935
4934
|
/*-----------------------------------------------------------------------------*/
|
|
4936
4935
|
|
|
4937
4936
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.540",
|
|
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)",
|