queueobj 10.1.4 → 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 +1 -1
- package/package.json +2 -2
- package/test/app.js +67 -11
- package/test/package.js +2 -2
package/app.js
CHANGED
package/package.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"author": {
|
|
3
3
|
"name": "Jim Manton"
|
|
4
4
|
},
|
|
5
|
-
"version": "10.
|
|
5
|
+
"version": "10.3.0",
|
|
6
6
|
"bundleDependencies": false,
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"chai": "^4.3.7",
|
|
9
9
|
"colors": "^1.4.0",
|
|
10
10
|
"diffler": "^2.0.4",
|
|
11
|
-
"mocha": "^10.
|
|
11
|
+
"mocha": "^10.2.0"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
14
|
"start": "node app.ts",
|
package/test/app.js
CHANGED
|
@@ -1,17 +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
|
-
|
|
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'))
|
|
16
72
|
})
|
|
17
73
|
})
|
package/test/package.js
CHANGED
|
@@ -6,13 +6,13 @@ const packageMock = {
|
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Jim Manton"
|
|
8
8
|
},
|
|
9
|
-
"version": "10.
|
|
9
|
+
"version": "10.3.0",
|
|
10
10
|
"bundleDependencies": false,
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chai": "^4.3.7",
|
|
13
13
|
"colors": "^1.4.0",
|
|
14
14
|
"diffler": "^2.0.4",
|
|
15
|
-
"mocha": "^10.
|
|
15
|
+
"mocha": "^10.2.0"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
18
|
"start": "node app.ts",
|