Socket
Socket
Sign inDemoInstall

nodeunit

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodeunit - npm Package Compare versions

Comparing version 0.10.2 to 0.11.0

2

CONTRIBUTORS.md

@@ -1,2 +0,2 @@

Nodeunit contributors (sorted alphabeticaly)
Nodeunit contributors (sorted alphabetically)
============================================

@@ -3,0 +3,0 @@

@@ -1943,2 +1943,3 @@ /*!

exports.run = function (modules, options) {
options = options || {};
var start = new Date().getTime();

@@ -1945,0 +1946,0 @@ var textareas = options.textareas;

@@ -175,7 +175,12 @@ /**

// 7.1. All identical values are equivalent, as determined by ===.
if (actual === expected) {
if (actual === expected)
return true;
// Convert to primitives, if supported
actual = actual.valueOf ? actual.valueOf() : actual;
expected = expected.valueOf ? expected.valueOf() : expected;
// 7.2. If the expected value is a Date object, the actual value is
// equivalent if it is also a Date object that refers to the same time.
} else if (actual instanceof Date && expected instanceof Date) {
if (actual instanceof Date && expected instanceof Date) {
return actual.getTime() === expected.getTime();

@@ -229,2 +234,3 @@

return false;
// an identical "prototype" property.

@@ -231,0 +237,0 @@ if (a.prototype !== b.prototype) return false;

@@ -54,2 +54,4 @@ /*!

};
var pass_indicator = process.platform === 'win32' ? '\u221A' : '✔';
var fail_indicator = process.platform === 'win32' ? '\u00D7' : '✖';

@@ -84,6 +86,6 @@ var start = new Date().getTime();

if (!assertions.failures()) {
console.log('✔ ' + name);
console.log(pass_indicator + ' ' + name);
}
else {
console.log(error('✖ ' + name) + '\n');
console.log(error(fail_indicator + ' ' + name) + '\n');
assertions.forEach(function (a) {

@@ -90,0 +92,0 @@ if (a.failed()) {

@@ -18,3 +18,3 @@ /*!

child_process = require('child_process'),
ejs = require('../../deps/ejs');
ejs = require('ejs');

@@ -21,0 +21,0 @@

@@ -55,2 +55,3 @@ /*!

};
var fail_indicator = process.platform === 'win32' ? '\u00D7' : '✖';

@@ -90,3 +91,3 @@ var spaces_per_indent = options.spaces_per_indent || 4;

var fail_text = function (txt) {
return bold(error(txt + " (fail) ✖ "));
return bold(error(txt + " (fail) " + fail_indicator + " "));
};

@@ -93,0 +94,0 @@

@@ -52,2 +52,4 @@ /*!

};
var pass_indicator = process.platform === 'win32' ? '\u221A' : '✔';
var fail_indicator = process.platform === 'win32' ? '\u00D7' : '✖';

@@ -67,3 +69,3 @@ var start = new Date().getTime();

if (assertions.failures()) {
console.log(error('✖ ' + name) + '\n');
console.log(error(fail_indicator + ' ' + name) + '\n');
assertions.forEach(function (a) {

@@ -84,6 +86,6 @@ if (a.failed()) {

if (!assertions.failures()) {
console.log('✔ all tests passed');
console.log(pass_indicator + ' all tests passed');
}
else {
console.log(error('✖ some tests failed'));
console.log(error(fail_indicator + ' some tests failed'));
}

@@ -90,0 +92,0 @@ },

@@ -54,2 +54,4 @@ /*!

};
var pass_indicator = process.platform === 'win32' ? '\u221A' : '✔';
var fail_indicator = process.platform === 'win32' ? '\u00D7' : '✖';

@@ -86,6 +88,6 @@ var start = new Date().getTime();

if (!assertions.failures()) {
console.log('✔ ' + name);
console.log(pass_indicator + ' ' + name);
}
else {
console.log(error('✖ ' + name));
console.log(error(fail_indicator + ' ' + name));
}

@@ -95,3 +97,3 @@ // verbose so print everything

if (a.failed()) {
console.log(error(' ✖ ' + a.message));
console.log(error(' ' + fail_indicator + ' ' + a.message));
a = utils.betterErrors(a);

@@ -101,3 +103,3 @@ console.log(' ' + a.error.stack);

else {
console.log(' ✔ ' + a.message);
console.log(' ' + pass_indicator + ' ' + a.message);
}

@@ -104,0 +106,0 @@ });

{
"name": "nodeunit",
"version": "0.10.2",
"version": "0.11.0",
"description": "Easy unit testing for node.js and the browser.",

@@ -66,4 +66,4 @@ "maintainers": [

"devDependencies": {
"uglify-js": ">=2.7.3",
"should": ">=11.1.0"
"should": ">=11.1.0",
"uglify-js": ">=2.7.3"
},

@@ -83,3 +83,4 @@ "bugs": {

"dependencies": {
"tap": "^7.0.0"
"ejs": "^2.5.2",
"tap": "^10.0.2"
},

@@ -86,0 +87,0 @@ "scripts": {

Nodeunit
========
[![Build Status](https://travis-ci.org/caolan/nodeunit.svg?branch=master)](https://travis-ci.org/caolan/nodeunit)
Simple syntax, powerful tools. Nodeunit provides easy async unit testing for

@@ -5,0 +7,0 @@ node.js and the browser.

@@ -118,3 +118,4 @@ /*

exports.testDeepEqual = makeTest('deepEqual',
[{one: 1}, {one: 1}], [{one: 1}, {two: 2}]
[{one: 1, two: 2}, {one: 1, two: {valueOf:function() {return 2;}}}],
[{one: 1, two: 2}, {two: 2}]
);

@@ -121,0 +122,0 @@ exports.testNotDeepEqual = makeTest('notDeepEqual',

var exec = require('child_process').exec,
path = require('path');
var bin = path.resolve(__dirname, '../bin/nodeunit');
var bin = (process.platform === 'win32' ? 'node ' : "") +
path.resolve(__dirname, '../bin/nodeunit');
var testfile_fullpath = path.resolve(__dirname, './fixtures/example_test.js');

@@ -6,0 +7,0 @@ var fixtures_path = path.resolve(__dirname, './fixtures');

Sorry, the diff of this file is not supported yet

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