aotrautils-srv 0.0.537 → 0.0.538
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 (21/07/2023-23:16:30)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -450,14 +450,13 @@ if(!window.aotestAllTestsManager){
|
|
|
450
450
|
// Utility methods for aotest framework :
|
|
451
451
|
window.aotestMethods.getScenariiInTest=function(test){
|
|
452
452
|
let results={};
|
|
453
|
-
foreach(test,(
|
|
454
|
-
results[
|
|
455
|
-
},(
|
|
453
|
+
foreach(test,(scenario,scenarioName)=>{
|
|
454
|
+
results[scenarioName]=scenario;
|
|
455
|
+
},(scenario,scenarioName)=>{ return window.aotestMethods.isScenarioName(scenarioName); });
|
|
456
456
|
return results;
|
|
457
457
|
};
|
|
458
458
|
|
|
459
459
|
|
|
460
|
-
|
|
461
460
|
/*private*/window.aotestMethods.doForAllTestsByType=function(allTestsByType, doOnIteration, filter=null, mustTerminate=null){
|
|
462
461
|
|
|
463
462
|
const loopResultI=foreach(allTestsByType,(testsByFunction,functionName)=>{
|
|
@@ -466,7 +465,7 @@ window.aotestMethods.getScenariiInTest=function(test){
|
|
|
466
465
|
const scenarii=aotestMethods.getScenariiInTest(test)
|
|
467
466
|
const loopResultK=foreach(scenarii,(scenario, scenarioName)=>{
|
|
468
467
|
|
|
469
|
-
if(doOnIteration) doOnIteration(scenario);
|
|
468
|
+
if(doOnIteration) doOnIteration(scenario, test);
|
|
470
469
|
if(mustTerminate && mustTerminate(scenario))
|
|
471
470
|
return scenario;
|
|
472
471
|
|
|
@@ -491,19 +490,19 @@ window.aotestMethods.getScenariiInTest=function(test){
|
|
|
491
490
|
|
|
492
491
|
if(testsType==="*"){
|
|
493
492
|
return foreach(allTests,(allTestsByType,t)=>{
|
|
494
|
-
const
|
|
495
|
-
if(
|
|
496
|
-
return
|
|
493
|
+
const loopResult=window.aotestMethods.doForAllTestsByType(allTestsByType, doOnIteration, filter, mustTerminate);
|
|
494
|
+
if(loopResult)
|
|
495
|
+
return loopResult;
|
|
497
496
|
});
|
|
498
497
|
|
|
499
498
|
}
|
|
500
499
|
|
|
501
500
|
const allTestsByType=allTests[testsType];
|
|
502
|
-
return window.aotestMethods.doForAllTestsByType(allTestsByType,doOnIteration, filter, mustTerminate);
|
|
501
|
+
return window.aotestMethods.doForAllTestsByType(allTestsByType, doOnIteration, filter, mustTerminate);
|
|
503
502
|
}
|
|
504
503
|
|
|
505
504
|
const allTestsByType=allTests;
|
|
506
|
-
return window.aotestMethods.doForAllTestsByType(allTestsByType,doOnIteration, filter, mustTerminate);
|
|
505
|
+
return window.aotestMethods.doForAllTestsByType(allTestsByType, doOnIteration, filter, mustTerminate);
|
|
507
506
|
|
|
508
507
|
};
|
|
509
508
|
|
|
@@ -4932,7 +4931,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4932
4931
|
|
|
4933
4932
|
|
|
4934
4933
|
|
|
4935
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
|
4934
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (21/07/2023-23:16:30)»*/
|
|
4936
4935
|
/*-----------------------------------------------------------------------------*/
|
|
4937
4936
|
|
|
4938
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.538",
|
|
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)",
|