queueobj 10.2.0 → 10.4.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 +1 -1
- package/lib/appenders/base.js +0 -1
- package/package.json +2 -2
- package/test/app.js +67 -81
- package/test/base.js +22 -0
- package/test/package.js +2 -2
package/app.js
CHANGED
package/lib/appenders/base.js
CHANGED
package/package.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"author": {
|
|
3
3
|
"name": "Jim Manton"
|
|
4
4
|
},
|
|
5
|
-
"version": "10.
|
|
5
|
+
"version": "10.4.0",
|
|
6
6
|
"bundleDependencies": false,
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"chai": "^4.3.7",
|
|
9
|
-
"colors": "^1.4
|
|
9
|
+
"node-console-colors": "^1.1.4",
|
|
10
10
|
"diffler": "^2.0.4",
|
|
11
11
|
"mocha": "^10.2.0"
|
|
12
12
|
},
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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/base.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var assert = require('assert');
|
|
2
|
+
|
|
3
|
+
describe('base', function () {
|
|
4
|
+
let base, bs
|
|
5
|
+
|
|
6
|
+
beforeEach(function () {
|
|
7
|
+
bs = require('../lib/appenders/base.js')
|
|
8
|
+
base = new bs({getParent: ()=>{}})
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
it('base should pass', function () {
|
|
12
|
+
assert(typeof base != 'undefined')
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
it('base.process is a function', function () {
|
|
16
|
+
assert(typeof base.process == 'function')
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
it('base.process_all is a function', function () {
|
|
20
|
+
assert(typeof base.process_all == 'function')
|
|
21
|
+
})
|
|
22
|
+
})
|
package/test/package.js
CHANGED
|
@@ -6,11 +6,11 @@ const packageMock = {
|
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Jim Manton"
|
|
8
8
|
},
|
|
9
|
-
"version": "10.
|
|
9
|
+
"version": "10.4.0",
|
|
10
10
|
"bundleDependencies": false,
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chai": "^4.3.7",
|
|
13
|
-
"colors": "^1.4
|
|
13
|
+
"node-console-colors": "^1.1.4",
|
|
14
14
|
"diffler": "^2.0.4",
|
|
15
15
|
"mocha": "^10.2.0"
|
|
16
16
|
},
|