Comparing version 1.6.2 to 2.0.0
{ | ||
"name":"highkick", | ||
"version":"1.6.2", | ||
"version":"2.0.0", | ||
"description":"Asynchronous, no-style, super simple testing tool.", | ||
@@ -8,3 +8,3 @@ "author":"Azer Koculu <azer@kodfabrik.com>", | ||
"directories":{ "lib": "./lib" }, | ||
"main":"./lib/highkick.js", | ||
"main":"./lib/index.js", | ||
"bin":{ | ||
@@ -14,4 +14,5 @@ "highkick":"./bin/highkick" | ||
"dependencies":{ | ||
"style":"0.1.x", | ||
"optimist":"0.x" | ||
"chai": "1.x", | ||
"style": "0.1.x", | ||
"optimist": "0.x" | ||
}, | ||
@@ -18,0 +19,0 @@ "repository": { "type":"git", "url" : "http://github.com/azer/highkick.git" }, |
@@ -1,10 +0,27 @@ | ||
var assert = require('assert'), | ||
highkick = require('../lib/highkick'); | ||
var testNested = kick('./nested'), | ||
testParams = kick('./params'), | ||
testChai = kick('./chai'); | ||
var testNested = highkick('./nested'), | ||
testParams = highkick('./params'), | ||
testAsync = highkick({ 'path': './async', 'async': true }); | ||
var i = 0; | ||
module.exports = { | ||
'testChai' : testChai, | ||
'testTimeout' : testTimeout, | ||
'testSyncPass' : testSyncPass, | ||
'testInitFail' : testInitFail, | ||
'testSimpleAsync' : testSimpleAsync, | ||
'testFail' : testFail, | ||
'testNested' : testNested, | ||
'testParams' : testParams, | ||
'testIsEnabled' : testIsEnabled | ||
}; | ||
it('fails', function(){ | ||
// err++ | ||
}); | ||
function testSyncPass(){ | ||
// pass; | ||
} | ||
function testInitFail(callback){ | ||
@@ -33,17 +50,18 @@ highkick('./init_fail', function(error, result){ | ||
function testTimeout(callback){ | ||
highkick('./timeout', { timeout: 200 }, function(error, result){ | ||
assert.equal(result.fail, 2); | ||
callback(); | ||
}); | ||
} | ||
function testIsEnabled(callback){ | ||
var isEnabled = highkick.isEnabled; | ||
var isEnabled = require('../lib/is-enabled'); | ||
assert.ok(!isEnabled('foo')); | ||
assert.ok(isEnabled('foo', '*')); | ||
assert.ok(isEnabled('foo', 'foo')); | ||
assert.ok(isEnabled('testFoo', 'foo')); | ||
assert.ok(isEnabled('test_foo', 'foo')); | ||
assert.ok(!isEnabled('bar', 'foo')); | ||
assert.ok(isEnabled('bar', 'foo,bar')); | ||
@@ -54,11 +72,1 @@ | ||
} | ||
module.exports = { | ||
'testInitFail': testInitFail, | ||
'testSimpleAsync': testSimpleAsync, | ||
'testFail': testFail, | ||
'testNested': testNested, | ||
'testParams': testParams, | ||
'testIsEnabled': testIsEnabled, | ||
'testAsync': testAsync | ||
} |
@@ -1,3 +0,1 @@ | ||
var assert = require('assert'); | ||
function init(options, callback){ | ||
@@ -4,0 +2,0 @@ callback(null, options); |
@@ -1,3 +0,2 @@ | ||
var assert = require('assert'), | ||
i = 0; | ||
var i = 0; | ||
@@ -4,0 +3,0 @@ function init(options, callback){ |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
25021
20
659
3
11
1
+ Addedchai@1.x
+ Addedassertion-error@1.0.0(transitive)
+ Addedchai@1.10.0(transitive)
+ Addeddeep-eql@0.1.3(transitive)
+ Addedtype-detect@0.1.1(transitive)