aotrautils-srv 0.0.1787 → 0.0.1789

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 (14/06/2025-22:21:07)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (22/06/2025-00:58:02)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -840,7 +840,7 @@ aotest.assert=function(booleanCondition, behavior){
840
840
  -global
841
841
  -type:string="testsSuiteResult"
842
842
  -childrenFailed : number
843
- -childrenRunned: number
843
+ -childrenRan: number
844
844
  -isFailed: boolean
845
845
  -message : string
846
846
  -children
@@ -876,7 +876,7 @@ aotest.run=function(testName=null,scenarioName=null){
876
876
  scenarioName : scenarioName,
877
877
  nature: "htmlsj",
878
878
  global:{
879
- type:"testsSuiteResult", childrenFailed:0, childrenRunned:0,
879
+ type:"testsSuiteResult", childrenFailed:0, childrenRan:0,
880
880
  isFailed:false,
881
881
  message:"No registered javascript tests to run.",
882
882
  expected:null,
@@ -901,7 +901,7 @@ aotest.run=function(testName=null,scenarioName=null){
901
901
  global:{
902
902
  type:"scenarioResult",
903
903
  childrenFailed:0,
904
- childrenRunned:0,
904
+ childrenRan:0,
905
905
  isFailed:false,
906
906
  message:""
907
907
  },
@@ -1275,7 +1275,7 @@ aotest.run=function(testName=null,scenarioName=null){
1275
1275
  oneChildFailed=true;
1276
1276
  scenarioResultObjLocal.global.childrenFailed++;
1277
1277
  }
1278
- scenarioResultObjLocal.global.childrenRunned++;
1278
+ scenarioResultObjLocal.global.childrenRan++;
1279
1279
  // We add the sub-scenario result to the children array:
1280
1280
  scenarioResultObjLocal.children[subScenarioNameLocal]=childrenResultObj;
1281
1281
 
@@ -1318,7 +1318,7 @@ aotest.run=function(testName=null,scenarioName=null){
1318
1318
  global:{
1319
1319
  type:"testResult",
1320
1320
  childrenFailed:0,
1321
- childrenRunned:0,
1321
+ childrenRan:0,
1322
1322
  isFailed:false,
1323
1323
  message:""
1324
1324
  },
@@ -1356,7 +1356,7 @@ aotest.run=function(testName=null,scenarioName=null){
1356
1356
  testResultObjLocal.global.childrenFailed++;
1357
1357
 
1358
1358
  }
1359
- testResultObjLocal.global.childrenRunned++;
1359
+ testResultObjLocal.global.childrenRan++;
1360
1360
  // We add the scenario result to the children array:
1361
1361
  testResultObjLocal.children[scenarioNameLocal]=scenarioResultObjLocal;
1362
1362
 
@@ -1387,7 +1387,7 @@ aotest.run=function(testName=null,scenarioName=null){
1387
1387
  global:{
1388
1388
  type:"testsSuiteResult",
1389
1389
  childrenFailed:0,
1390
- childrenRunned:0,
1390
+ childrenRan:0,
1391
1391
  isFailed:false,
1392
1392
  message:""
1393
1393
  },
@@ -1408,7 +1408,7 @@ aotest.run=function(testName=null,scenarioName=null){
1408
1408
  allTestsResultObjLocal.global.childrenFailed++;
1409
1409
 
1410
1410
  }
1411
- allTestsResultObjLocal.global.childrenRunned++;
1411
+ allTestsResultObjLocal.global.childrenRan++;
1412
1412
  // We add the scenario result to the children array:
1413
1413
  allTestsResultObjLocal.children[testNameLocal]=testResultObj;
1414
1414
 
@@ -1431,7 +1431,7 @@ aotest.run=function(testName=null,scenarioName=null){
1431
1431
  global:{
1432
1432
  type:"testsSuiteResult",
1433
1433
  childrenFailed:0,
1434
- childrenRunned:0,
1434
+ childrenRan:0,
1435
1435
  isFailed:false,
1436
1436
  message:""
1437
1437
  },
@@ -1456,7 +1456,7 @@ aotest.run=function(testName=null,scenarioName=null){
1456
1456
  global:{
1457
1457
  type:"testResult",
1458
1458
  childrenFailed:0,
1459
- childrenRunned:0,
1459
+ childrenRan:0,
1460
1460
  isFailed:false,
1461
1461
  message:""
1462
1462
  },
@@ -1475,7 +1475,7 @@ aotest.run=function(testName=null,scenarioName=null){
1475
1475
  testResultObj.global.childrenFailed++;
1476
1476
 
1477
1477
  }
1478
- testResultObj.global.childrenRunned++;
1478
+ testResultObj.global.childrenRan++;
1479
1479
  // We add the scenario result to the children array of the only child of this tests suite:
1480
1480
  testResultObj.children[scenarioName]=scenarioResultObj;
1481
1481
 
@@ -1495,7 +1495,7 @@ aotest.run=function(testName=null,scenarioName=null){
1495
1495
  allTestsResultObj.global.childrenFailed++;
1496
1496
 
1497
1497
  }
1498
- allTestsResultObj.global.childrenRunned++;
1498
+ allTestsResultObj.global.childrenRan++;
1499
1499
  // We add the test result to the children array:
1500
1500
  allTestsResultObj.children[testName]=testResultObj;
1501
1501
 
@@ -1518,18 +1518,18 @@ aotest.run=function(testName=null,scenarioName=null){
1518
1518
  let str="";
1519
1519
 
1520
1520
  let resultsFailed=getCumulatedInt(resultObj,"childrenFailed");
1521
- let resultsRunned=getCumulatedInt(resultObj,"childrenRunned");
1521
+ let resultsRan=getCumulatedInt(resultObj,"childrenRan");
1522
1522
 
1523
1523
 
1524
1524
  // TRACE
1525
1525
  str+="@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n";
1526
1526
  str+=" AOTEST REPORT \n";
1527
- str+="REPORT: "+resultsFailed + "/" + resultsRunned + " scenarii failed.\n";
1528
- str+="REPORT: "+(resultsRunned - resultsFailed) + "/" + resultsRunned + " scenarii succeeded.\n";
1529
- str+="REPORT: "+resultsRunned + " scenarii runned.\n";
1527
+ str+="REPORT: "+resultsFailed + "/" + resultsRan + " scenarii failed.\n";
1528
+ str+="REPORT: "+(resultsRan - resultsFailed) + "/" + resultsRan + " scenarii succeeded.\n";
1529
+ str+="REPORT: "+resultsRan + " scenarii ran.\n";
1530
1530
  str+="@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n";
1531
1531
 
1532
- if(0<resultsRunned){
1532
+ if(0<resultsRan){
1533
1533
  if(!resultObj.global.isFailed){
1534
1534
  // TRACE
1535
1535
  str+="LOG: RESULT :>>>>>> All tests SUCCEEDED ! :D\n";
@@ -1539,7 +1539,7 @@ aotest.run=function(testName=null,scenarioName=null){
1539
1539
  }
1540
1540
  } else {
1541
1541
  // TRACE
1542
- str+="LOG: RESULT :>>>>>> No tests runned... :|\n";
1542
+ str+="LOG: RESULT :>>>>>> No tests ran... :|\n";
1543
1543
  }
1544
1544
 
1545
1545
  return str;
@@ -5012,7 +5012,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5012
5012
 
5013
5013
 
5014
5014
 
5015
- /*utils AI library associated with aotra version : «1_29072022-2359 (14/06/2025-22:21:07)»*/
5015
+ /*utils AI library associated with aotra version : «1_29072022-2359 (22/06/2025-00:58:02)»*/
5016
5016
  /*-----------------------------------------------------------------------------*/
5017
5017
 
5018
5018
 
@@ -5158,7 +5158,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
5158
5158
 
5159
5159
 
5160
5160
 
5161
- /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (14/06/2025-22:21:07)»*/
5161
+ /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (22/06/2025-00:58:02)»*/
5162
5162
  /*-----------------------------------------------------------------------------*/
5163
5163
 
5164
5164
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.1787",
3
+ "version": "0.0.1789",
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)",