quest-runner
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -51,4 +51,4 @@ const { Assert, AssertionError } = require('./assert.js'); | ||
const ansi = require('ansi-colors'); | ||
if (host == undefined || typeof(host) !== 'string' || !(host = host.trim()).length) return; | ||
if (config != undefined && message == undefined && typeof(config) === 'string') { | ||
if (host == undefined || typeof (host) !== 'string' || !(host = host.trim()).length) return; | ||
if (config != undefined && message == undefined && typeof (config) === 'string') { | ||
message = config; | ||
@@ -58,3 +58,3 @@ config = undefined; | ||
const ping = require('ping'); | ||
if (config == undefined || typeof(config) !== 'object') config = {}; | ||
if (config == undefined || typeof (config) !== 'object') config = {}; | ||
const print = !!config.print; | ||
@@ -61,0 +61,0 @@ config = { |
11
index.js
@@ -96,4 +96,9 @@ | ||
let fail; | ||
let parameters = {}; | ||
let base = undefined; | ||
for (const task of state.task) { | ||
try { | ||
number++; | ||
@@ -105,5 +110,9 @@ if (task.info != undefined && typeof task.info === 'object') { | ||
} | ||
console.log(`${ansi.blueBright('TASK')} ${ansi.bgBlue(' ' + ansi.whiteBright(number) + ' ')}${task.name ? ' ' : ''}${task.name}`); | ||
console.log(); | ||
state.test = new Test(); | ||
state.test.base = base; | ||
state.test.parameters = parameters; | ||
state.step = []; | ||
@@ -189,2 +198,4 @@ if (task.code && typeof task.code === 'function') { | ||
parameters = state.test.parameters; | ||
base = state.test.base; | ||
} | ||
@@ -191,0 +202,0 @@ } |
{ | ||
"name": "quest-runner", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Tool for creating and processing logic flow scenarios", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -133,3 +133,3 @@ const ansi = require('ansi-colors'); | ||
if (this.parameters == undefined) this.parameters = {}; | ||
const search = name.toLowerCase(); | ||
const search = name.toLowerCase(); | ||
let key = Object.keys(this.parameters).find(name => name.toLowerCase() === search); | ||
@@ -136,0 +136,0 @@ if (value == undefined) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50622
1247