queueobj 10.2.0 → 10.3.0

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/app.js CHANGED
@@ -42,7 +42,7 @@ class QueueObj {
42
42
  t.logMsg = t.logMsg.bind(this)
43
43
  return t
44
44
  } catch (e) {
45
- e.message = "queueObj app.js init error: " + e.message
45
+ e.message = "queueObj app.js constructor error: " + e.message
46
46
  throw (e)
47
47
  }
48
48
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": {
3
3
  "name": "Jim Manton"
4
4
  },
5
- "version": "10.2.0",
5
+ "version": "10.3.0",
6
6
  "bundleDependencies": false,
7
7
  "dependencies": {
8
8
  "chai": "^4.3.7",
package/test/app.js CHANGED
@@ -1,87 +1,73 @@
1
1
  var assert = require('assert');
2
2
 
3
3
  describe('app', function () {
4
+ let app, application
4
5
 
5
- describe('require', function () {
6
- it('colors app', function () {
7
- try {
8
- colors = require('colors')
9
- if (typeof colors == 'undefined') {
10
- throw new Error('no colors')
11
- }
12
- } catch (e) {
13
- assert(false)
14
- }
15
- })
16
- it('all appender', function () {
17
- try {
18
- all = require('../lib/appenders/all')
19
- if (typeof all == 'undefined') {
20
- throw new Error('no all appender')
21
- }
22
- } catch (e) {
23
- assert(false)
24
- }
25
- })
26
- it('func_all appender', function () {
27
- try {
28
- func_all = require('../lib/appenders/func_all')
29
- if (typeof func_all == 'undefined') {
30
- throw new Error('no func_all')
31
- }
32
- } catch (e) {
33
- assert(false)
34
- }
35
- })
36
- it('top_one appender', function () {
37
- try {
38
- top_one = require('../lib/appenders/top_one')
39
- if (typeof top_one == 'undefined') {
40
- throw new Error('no top_one')
41
- }
42
- } catch (e) {
43
- assert(false)
44
- }
45
- })
46
- it('bottom_one appender', function () {
47
- try {
48
- bottom_one = require('../lib/appenders/bottom_one')
49
- if (typeof bottom_one == 'undefined') {
50
- throw new Error('no bottom_one')
51
- }
52
- } catch (e) {
53
- assert(false)
54
- }
55
- })
56
- it('sync_all appender', function () {
57
- try {
58
- sync_all = require('../lib/appenders/sync_all')
59
- if (typeof sync_all == 'undefined') {
60
- throw new Error('no sync_all')
61
- }
62
- } catch (e) {
63
- assert(false)
64
- }
65
- })
66
- it('status appender', function () {
67
- try {
68
- statuss = require('../lib/appenders/status')
69
- if (typeof statuss == 'undefined') {
70
- throw new Error('no status')
71
- }
72
- } catch (e) {
73
- assert(false)
74
- }
75
- })
76
- it('version appender', function () {
77
- try {
78
- version = require('../lib/appenders/version')
79
- if (typeof version == 'undefined') {
80
- throw new Error('no version')
81
- }
82
- } catch (e) {
83
- assert(false)
84
- }
85
- })
6
+ it('app.constructor should pass', function () {
7
+ application = require('../app.js')
8
+ assert(app = new application())
9
+ })
10
+
11
+ it('app.process is a function', function () {
12
+ assert(typeof app.process == 'function')
13
+ })
14
+
15
+ it('app.getParent is a function', function () {
16
+ assert(typeof app.getParent == 'function')
17
+ })
18
+
19
+ it('app.getObjectToProcess is a function', function () {
20
+ assert(typeof app.getObjectToProcess == 'function')
21
+ })
22
+
23
+ it('app.getObjectById is a function', function () {
24
+ assert(typeof app.getObjectById == 'function')
25
+ })
26
+
27
+ it('app.getObjs is a function', function () {
28
+ assert(typeof app.getObjs == 'function')
29
+ })
30
+
31
+ it('app.logMsg is a function', function () {
32
+ assert(typeof app.logMsg == 'function')
33
+ })
34
+ })
35
+
36
+ describe('require', function () {
37
+
38
+ it('base', function () {
39
+ assert(require('../lib/appenders/base'))
40
+ })
41
+
42
+ it('colors app', function () {
43
+ assert(require('colors'))
44
+ })
45
+
46
+ it('all appender', function () {
47
+ assert(require('../lib/appenders/all'))
48
+ })
49
+
50
+ it('func_all appender', function () {
51
+ assert(require('../lib/appenders/func_all'))
52
+ })
53
+
54
+ it('top_one appender', function () {
55
+ assert(require('../lib/appenders/top_one'))
56
+ })
57
+
58
+ it('bottom_one appender', function () {
59
+ assert(require('../lib/appenders/bottom_one'))
60
+ })
61
+
62
+ it('sync_all appender', function () {
63
+ assert(require('../lib/appenders/sync_all'))
64
+ })
65
+
66
+ it('status appender', function () {
67
+ assert(require('../lib/appenders/status'))
68
+ })
69
+
70
+ it('version appender', function () {
71
+ assert(require('../lib/appenders/version'))
86
72
  })
87
73
  })
package/test/package.js CHANGED
@@ -6,7 +6,7 @@ const packageMock = {
6
6
  "author": {
7
7
  "name": "Jim Manton"
8
8
  },
9
- "version": "10.2.0",
9
+ "version": "10.3.0",
10
10
  "bundleDependencies": false,
11
11
  "dependencies": {
12
12
  "chai": "^4.3.7",