aotrautils-srv 0.0.538 → 0.0.539
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:14:05)»*/
|
|
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
|
};
|
|
@@ -617,7 +617,7 @@ window.aotest=function(parameters,functionDefinition=null,ignoreTest=false,CLASS
|
|
|
617
617
|
// Parameters :
|
|
618
618
|
// Tested function/method name :
|
|
619
619
|
var functionName;
|
|
620
|
-
const functionNameParam=parameters.
|
|
620
|
+
const functionNameParam=parameters.functionName;
|
|
621
621
|
|
|
622
622
|
|
|
623
623
|
if(!functionDefinition){
|
|
@@ -668,9 +668,9 @@ window.aotest=function(parameters,functionDefinition=null,ignoreTest=false,CLASS
|
|
|
668
668
|
currentTest.name=nameParam;
|
|
669
669
|
|
|
670
670
|
// (optional) Func (ie. function name) :
|
|
671
|
-
let
|
|
672
|
-
if(!!
|
|
673
|
-
currentTest["
|
|
671
|
+
let functionName=parameters["functionName"];
|
|
672
|
+
if(!!functionName /*(forced to boolean)*/){
|
|
673
|
+
currentTest["functionName"]=functionName;
|
|
674
674
|
}
|
|
675
675
|
|
|
676
676
|
// We add to the global context :
|
|
@@ -4931,7 +4931,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4931
4931
|
|
|
4932
4932
|
|
|
4933
4933
|
|
|
4934
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
|
4934
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (22/07/2023-03:14:05)»*/
|
|
4935
4935
|
/*-----------------------------------------------------------------------------*/
|
|
4936
4936
|
|
|
4937
4937
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.539",
|
|
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)",
|