Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "kondition", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "An async chained condition assertion runner. Checks expectations on variables against actions and enables conditional waiting.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -12,2 +12,6 @@ # kondition | ||
``` | ||
var KonditionRunner = require('kondition'), | ||
Runner = KonditionRunner; | ||
// just some typical async test function for an object called "player" | ||
@@ -65,1 +69,10 @@ var MyPlayerTestFunction = function(player, done) { | ||
``` | ||
### How to use ? | ||
Install with npm: | ||
``` | ||
npm install kondition | ||
``` | ||
Use with a CommonJS compatible `require` function as in the example above or include statically from `node_modules` directory the `kondition/runner.js` file. |
@@ -1,3 +0,1 @@ | ||
Utils = require('../js/utils'), | ||
module.exports = {}; | ||
@@ -13,2 +11,8 @@ | ||
function bindAll(instance, functions) { | ||
functions.forEach(function(func) { | ||
instance[func] = instance[func].bind(instance); | ||
}); | ||
} | ||
var CondVar = module.exports.CondVar = function(actionObject, timeoutMs) { | ||
@@ -25,3 +29,3 @@ | ||
Utils.bindAll(this, [ | ||
bindAll(this, [ | ||
'expectBelow', | ||
@@ -229,2 +233,2 @@ 'expectAbove', | ||
return this.expectors.length === 0; | ||
}; | ||
}; |
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
10618
187
77