@iobroker/legacy-testing 0.3.7 → 1.0.1

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.
package/README.md CHANGED
@@ -14,6 +14,12 @@ Set process.env.JS_CONTROLLER_VERSION to version e.g. `5.0.5-alpha.0-20230617-46
14
14
 
15
15
  ## Changelog
16
16
  <!-- ### **WORK IN PROGRESS** -->
17
+ ### 1.0.1 (2023-10-16)
18
+ * (bluefox) Made `common.title` not required
19
+
20
+ ### 1.0.0 (2023-09-18)
21
+ * (bluefox) Corrected error if systemConfig requested
22
+
17
23
  ### 0.3.7 (2023-07-07)
18
24
  * (bluefox) Allowed using the specific version of js-controller
19
25
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.3.7",
2
+ "version": "1.0.1",
3
3
  "name": "@iobroker/legacy-testing",
4
4
  "main": "setup.js",
5
5
  "files": [
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "mocha": "^10.2.0",
28
- "chai": "^4.3.7"
28
+ "chai": "^4.3.10"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@alcalzone/release-script": "^3.6.0",
package/setup.js CHANGED
@@ -543,6 +543,11 @@ function clearDB() {
543
543
  }
544
544
 
545
545
  function setupController(preInstalledAdapters, cb) {
546
+ if (typeof preInstalledAdapters === 'function') {
547
+ cb = preInstalledAdapters;
548
+ preInstalledAdapters = null;
549
+ }
550
+
546
551
  installJsController(preInstalledAdapters, async isInitialized => {
547
552
  try {
548
553
  clearControllerLog();
@@ -59,11 +59,11 @@ describe('Test package.json and io-package.json', () => {
59
59
  console.log();
60
60
  }
61
61
 
62
- if (
63
- ioPackage.common.title.includes('iobroker') ||
62
+ if (ioPackage.common.title &&
63
+ (ioPackage.common.title.includes('iobroker') ||
64
64
  ioPackage.common.title.includes('ioBroker') ||
65
65
  ioPackage.common.title.includes('adapter') ||
66
- ioPackage.common.title.includes('Adapter')
66
+ ioPackage.common.title.includes('Adapter'))
67
67
  ) {
68
68
  console.log('WARNING: title contains Adapter or ioBroker. It is clear anyway, that it is adapter for ioBroker.');
69
69
  console.log();