New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

highkick

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

highkick - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

.gitignore

21

lib/highkick.js

@@ -1,6 +0,7 @@

var _puts = require('sys').puts;
var _puts = require('sys').puts,
colors = require('colors');
function kick(options,callback){
var module = options.module,
title = options.name ? options.name+' | ' : '';
title = options.name ? (options.name).bold+' | '.grey : '';
var tests = Object.keys(module)

@@ -20,6 +21,14 @@ .filter(function(el){ return el.substring(0,5)=='test_' })

!options.silent && process.stdout.write(title + '> '+test.name + ' ('+ctr+'/'+len+' , ' + ( (new Date).getTime() - startTS )/1000+'s) ');
!options.silent && _puts(error ? 'FAIL ('+error.message+', '+error.stack+')' : ' OK');
if(!options.silent){
process.stdout.write(title);
process.stdout.write(error ? 'FAIL '.bold.red : 'OK '.green.bold);
_puts(test.name.bold.yellow + ' ('.grey+(ctr+'/'+len).bold+', '.grey + (( (new Date).getTime() - startTS )/1000+'s').white.bold+') '.grey)
if(error){
_puts('ERROR: '.bold.red+error.message.bold+'\n'+error.stack+')');
}
}
if(ctr>=len){
_puts('====');
_puts('Ran '+String(len).bold+' tests ' + ( fail ? 'with ' + String(fail).bold.red + ' fail.' : 'without any error.') );
callback(undefined, { 'len':len, 'fail':fail });

@@ -37,3 +46,3 @@ }

if(i>=tests.length){
puts('* All tests has been fired.');
puts('* All tests has been fired.'.grey);
if(tests.length==0) callback();

@@ -46,3 +55,3 @@ return;

puts('Running "'+test.name+'" ...');
puts('Running '+test.name+' ...');

@@ -49,0 +58,0 @@ startTS = (new Date).getTime();

{
"name":"highkick",
"version":"1.0.0",
"version":"1.1.0",
"description":"Asynchronous, no-style, super simple testing tool.",

@@ -8,3 +8,6 @@ "author":"Azer Koculu <azer@kodfabrik.com>",

"directories":{ "lib": "./lib" },
"main":"./lib/highkick.js"
"main":"./lib/highkick.js",
"dependencies":{
"colors":"0.x"
}
}

@@ -5,6 +5,4 @@ var highkick = require('../lib/highkick'),

highkick({ 'module':tests }, function(error, result){
highkick({ 'name':'highkick', 'module':tests }, function(error, result){
if(error) throw error;
puts('====');
puts('Ran '+result.len+' tests ' + ( result.fail ? 'with ' + result.fail + ' fail.' : 'without any error.') );
});

@@ -10,3 +10,3 @@ var assert = require('assert');

setTimeout(function(){
callback();
callback();
}, 10);

@@ -13,0 +13,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc