Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tape

Package Overview
Dependencies
Maintainers
1
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tape - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

test/only.js

20

index.js

@@ -29,2 +29,3 @@ var createDefaultStream = require('./lib/default_stream');

var began = false;
var only = false;
var out = new Render();

@@ -41,3 +42,5 @@

out.close();
if (!code && !t._ok) process.exit(1);
if (!code && !t._ok && (!only || name === only)) {
process.exit(1);
}
});

@@ -57,2 +60,7 @@ }

if (only && name !== only) {
count--;
return;
}
if (running || pending.length) {

@@ -100,2 +108,12 @@ pending.push(run);

test.only = function (name) {
if (only) {
throw new Error("there can only be one only test");
}
only = name;
return test.apply(null, arguments);
};
test.stream = out;

@@ -102,0 +120,0 @@ return test;

2

lib/test.js

@@ -106,3 +106,3 @@ var EventEmitter = require('events').EventEmitter;

actual : defined(extra.actual, opts.actual),
expected : defined(extra.expected, opts.expected),
expected : defined(extra.expected, opts.expected)
};

@@ -109,0 +109,0 @@ this._ok = Boolean(this._ok && ok);

{
"name" : "tape",
"version" : "0.2.0",
"version" : "0.2.1",
"description" : "tap-producing test harness for node and browsers",

@@ -5,0 +5,0 @@ "main" : "index.js",

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