Comparing version 8.2.2 to 8.3.0
{ | ||
"name": "queuejson", | ||
"version": "8.2.2", | ||
"version": "8.3.0", | ||
"description": "Process class objects according to json array input data.", | ||
@@ -10,3 +10,3 @@ "main": "app.js", | ||
"node-console-colors": "^1.1.4", | ||
"queueobj": "^10.2.0", | ||
"queueobj": "^10.3.0", | ||
"ts-node": "^10.9.1", | ||
@@ -13,0 +13,0 @@ "diffler": "^2.0.4" |
var assert = require('assert'); | ||
describe('app', function () { | ||
let app, application, props = {getParent: ()=>{}, debug: true} | ||
describe('require', function () { | ||
it('queueobj', function () { | ||
try { | ||
queueobj = require('queueobj') | ||
if (typeof queueobj == 'undefined') { | ||
throw new Error('no queueobj') | ||
} | ||
} catch (e) { | ||
assert(false) | ||
} | ||
}) | ||
it('app.constructor should pass with parameters', function () { | ||
application = require('../app.js') | ||
assert(app = new application(props)) | ||
}) | ||
it('app.init is a function', function () { | ||
assert(typeof app.init == 'function') | ||
}) | ||
it('app.process is a function', function () { | ||
assert(typeof app.process == 'function') | ||
}) | ||
describe('node-console-colors', function () { | ||
it('node-console-colors', function () { | ||
try { | ||
ncc = require('node-console-colors') | ||
if (typeof ncc == 'undefined') { | ||
throw new Error('no node-console-colors') | ||
} | ||
} catch (e) { | ||
assert(false) | ||
} | ||
}) | ||
it('app.getParent is a function', function () { | ||
assert(typeof app.getParent == 'function') | ||
}) | ||
it('app.logMsg is a function', function () { | ||
assert(typeof app.logMsg == 'function') | ||
}) | ||
}) | ||
describe('require', function () { | ||
it('queueobj', function () { | ||
assert(require('queueobj')) | ||
}) | ||
it('chai', function () { | ||
assert(require('chai')) | ||
}) | ||
it('mocha', function () { | ||
assert(require('mocha')) | ||
}) | ||
it('node-console-colors', function () { | ||
assert(require('node-console-colors')) | ||
}) | ||
it('ts-node', function () { | ||
assert(require('ts-node')) | ||
}) | ||
it('diffler', function () { | ||
assert(require('diffler')) | ||
}) | ||
}) |
@@ -7,3 +7,3 @@ const assert = require('assert'), | ||
"name": "queuejson", | ||
"version": "8.2.2", | ||
"version": "8.3.0", | ||
"description": "Process class objects according to json array input data.", | ||
@@ -15,3 +15,3 @@ "main": "app.js", | ||
"node-console-colors": "^1.1.4", | ||
"queueobj": "^10.2.0", | ||
"queueobj": "^10.3.0", | ||
"ts-node": "^10.9.1", | ||
@@ -18,0 +18,0 @@ "diffler": "^2.0.4" |
36424
945
Updatedqueueobj@^10.3.0